- Clone repo to local environment
- To install archetype project into your local maven repository and archetype catalog, run:
mvn install
mvn archetype:generate \
-DarchetypeGroupId=org.mneidinger.maven.archetype -DarchetypeArtifactId=Archetype-Discord-Bot -DarchetypeVersion=0.0.1-SNAPSHOT \
-DgroupId=[insert groupId] -DartifactId=[insert artifactId] -Dversion=[insert version] \
-Dgoals=compiler.compile<br/>
- The "operand"
archetype:generate
references thearchetype
plugin and executes thegenerate
goal which uses the archetype project to generate a maven project - The second line specifies the archetype project to use and has to key into an entry in the archetype-catalog.xml
- The third line specifies the information of your project
- The fourth line will compile the new project after creating it. It's optional and not necessary to create projects from an archetype
mvn archetype:generate \
-DarchetypeGroupId=org.mneidinger.maven.archetype -DarchetypeArtifactId=Archetype-Discord-Bot -DarchetypeVersion=0.0.1-SNAPSHOT \
-DgroupId=org.discordbot -DartifactId=DiscordBot -Dversion=0.0.1-SNAPSHOT \
-Dgoals=compiler:compile
This archetype project forces the entered artifactId to all lowercase when injecting into the created project's pom.xml
It does leave the artifactId unmanipulated when injecting the value into the name element of the pom.xml