DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Simpliy AMP Source --> Target mapping in packaging #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We want to simplify the current AMP source --> target mapping as it might be 
confusing for Maven newbies, while not being totally adhering to Maven 
standards for Maven experiences users.

While we want to preserve Alfresco best practice enforcement (e.g. single 
sourcing of moduleId), we want to simplify the mapping in a way that:

- src/main/java                             --> AMP/lib/amp.jar
- src/main/resources/                       --> AMP/lib/amp.jar
- src/main/amp                              --> AMP/
              |
              -> module.properties          --> AMP/module.properties
              -> file-mappings.properties   --> AMP/file-mappings.properties
              -> config                     --> AMP/config
              -> web                        --> AMP/web
              -> licenses                   --> AMP/licenses

This is a very simple and intuitive mapping. We will take care of best 
practices (e.g. mapping to alfresco/module/${artifactId}) at archetype 
generation time.

Original issue reported on code.google.com by colum...@gmail.com on 16 Oct 2012 at 5:35

GoogleCodeExporter commented 9 years ago
Issue 103 should follow for completing the full task

Original comment by colum...@gmail.com on 16 Oct 2012 at 5:38

GoogleCodeExporter commented 9 years ago
Fixed @r526.

Here the details of the commit:

-- the new straightforward mapping 
   src/main/amp --> /
   src/main/resources --> /lib/ampjar.jar
   src/main/java      --> /lib/ampjar.jar

 is now used. No more automatic mapping of module config is done, but will be enforced at archetype creation time
- Removed many (now useless) parsings of web and config folders
- Added AmpModel to store common constants
- Included module.properties, file-mappings.properties, 
alfresco/module/${artifactId}/module-context.xml and 
alfresco/module/${artifactId}/context/*-context.xml to ampFilteredSources
- Updated README and Roadmap

Tested and ran successfully the 2 test AMPs in the quickstart archetypes.

Original comment by colum...@gmail.com on 17 Oct 2012 at 1:38