Skip to content

Instantly share code, notes, and snippets.

@thomashartm
Created September 30, 2017 19:23
Show Gist options
  • Save thomashartm/68ceefb5e5d133baeb7c5d8e755cafff to your computer and use it in GitHub Desktop.
Save thomashartm/68ceefb5e5d133baeb7c5d8e755cafff to your computer and use it in GitHub Desktop.
Sling related maven archytpes for creating a sling multi module maven project
Multi Maven Module:
mvn archetype:generate \
-DarchetypeGroupId=org.codehaus.mojo.archetypes \
-DarchetypeArtifactId=pom-root \
-DarchetypeVersion=RELEASE \
-DgroupId=biz.netcentric.sling \
-DartifactId=sling-multi-module-maven-project \
-Dversion=1.0.0-SNAPSHOT \
-DinteractiveMode=false
Content Package:
mvn archetype:generate \
-DarchetypeGroupId=org.apache.sling \
-DarchetypeArtifactId=sling-initial-content-archetype \
-DgroupId=biz.netcentric.sling \
-DartifactId=ui \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=biz.netcentric.sling.myproject.content \
-DappsFolderName=myproject \
-DartifactName="myproject-content" \
-DpackageGroup="ui" \
-DinteractiveMode=false
Bundle Archetype:
mvn archetype:generate \
-DarchetypeGroupId=org.apache.sling \
-DarchetypeArtifactId=sling-bundle-archetype \
-DgroupId=biz.netcentric.sling.myproject.core \
-DartifactId=myproject-core \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=biz.netcentric.sling.myproject.core \
-DappsFolderName=project \
-DartifactName="myproject-core" \
-DpackageGroup="myproject-core" \
-DinteractiveMode=false
See http://sling.apache.org/documentation/development/maven-archetypes.html for details
https://stackoverflow.com/questions/6328778/how-to-create-an-empty-multi-module-maven-project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment