Professional Documents
Culture Documents
Create Maven Projects For CQ
Create Maven Projects For CQ
1) Create a maven multi module project where in you can integrate other projects.
you can create such a project with the help of below archetype. Please see that in
the pom file there should be a type which should say packaging =pom. This tell
maven that this is a parent project.
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes
-DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE
2) Then go under a subdirectory of this project and create a maven project of one
of the adobes archetype. There are 3 types of maven adobe archetypes, see which
one you need.
mvn -Padobe-public archetype:generate
-DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/
-DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-contentpackage-archetype -DarchetypeVersion=1.0.2
Once you fill in the values and the project is generated, the parent pom file will
automatically change to include the sub project as one of its own module.