Last active
December 30, 2016 22:07
-
-
Save asaushkin/5c88f6dadb88fbeca20be8c18f30657b to your computer and use it in GitHub Desktop.
Create multimodule maven projects in the non interactive mode
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
#!/bin/sh | |
# org.apache.maven.archetypes:maven-archetype-quickstart | |
# org.codehaus.mojo.archetypes:pom-root | |
generate_archetype() { | |
mvn archetype:generate -B \ | |
-DarchetypeGroupId=$1 \ | |
-DarchetypeArtifactId=$2 \ | |
-DarchetypeVersion=1.1 \ | |
-DgroupId=me.asaushkin.lambda \ | |
-DartifactId=$3 \ | |
-Dversion=1.0-SNAPSHOT \ | |
-Dpackage=me.asaushkin.lambda | |
} | |
#generate_archetype org.codehaus.mojo.archetypes pom-root LambdaWarburton | |
#cd LambdaWarburton | |
generate_archetype org.apache.maven.archetypes maven-archetype-quickstart $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment