When developing your module you will need to organize your source code. It is recommended that your project be laid out as follows:
\ |-- source | |-- java | |-- <module package structure starts here> | |-- web | |-- css | |-- images | |-- jsp | |-- scripts | |-- config | |-- <resource package structure starts here> | |-- lib | |-- build | |-- dist | |-- project-build.xml
This contains the Java source for your Alfresco module. The package structure can be anything suitable, but many of the Alfresco written modules have the package structure org_alfresco_module_<module_id>, where module_id is the ID of the module.
This code will need to be built into a JAR and placed in the final AMP file.
|source/web||This contains any web UI resources split into the various folders outlined previously, including JSP pages, images, CSS, and scripts.|
|build||The class files that implement the module are built into this directory, with any resulting JARs and the AMP file itself being built to the build/dist folder.|