Created
September 30, 2017 19:23
-
-
Save thomashartm/68ceefb5e5d133baeb7c5d8e755cafff to your computer and use it in GitHub Desktop.
Sling related maven archytpes for creating a sling multi module maven project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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