Maven Archetype for CQ multi-module maven project


multimodule-content-package-archetype plugin usage example:

[code language=”java”]
mvn archetype:generate -DarchetypeRepository=
-DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DartifactId=cqcommons -Dversion=1.0-SNAPSHOT -DappsFolderName=project -DartifactName=cqcommons -DcqVersion=5.6.1 -DpackageGroup=company

Using multimodule-content-package-archetype creates the following folder structure

/bundle      //holds the osgi bundle java src
/content     //holds the jcr nodes
/pom.xml   //creates a zip package of osgi bundle and content

maven install -PautoInstallPackage : To install the complete package zip
maven install -PautoInstallBundle  :   To intall subsequent osgi bundles only after java source changes

Refer :

Leave a Reply

Your email address will not be published. Required fields are marked *