更多精彩请到 http://www.139ya.com
1. create the folder structure as Alfresco recommended. Sample : ${Alfresco_Source}\modules\avm-compare
2. code the service code
3. build them by the ANT. Sample build.xml : ${Alfresco_Source}\projects\sdk\samples\BasicAmpSample\build.xml
4. DON't deploy the generated .amp file by alfresco-mmt-3Stable.jar directly! it will damage the war file!
5. unzip the generated .amp file into a clean folder, e.g. D:\temp\alfresco_module_test
5. copy the generated .jar file to alfresco web instance, e.g. From D:\temp\alfresco_module_test\lib\baconModuleTest.jar To D:\dev\a_lab3c\tomcat\webapps\alfresco\WEB-INF\lib\baconModuleTest.jar
6. copy the folder D:\temp\alfresco_module_test\config\alfresco\module\org.alfresco.module.bacon To D:\dev\a_lab3c\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org.alfresco.module.bacon
7. copy the folder D:\temp\alfresco_module_test\config\alfresco\extension\templates\webscripts To D:\dev\a_lab3c\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts
8. Done
Note: maybe the file "module.properties" should be put at "D:\dev\a_lab3c\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org.alfresco.module.bacon", because it's packaged into the root folder inside the .amp package, but by now the deployed module works fine without the properties file, it's just a comments for future!
Sunday, May 3, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment