Skip to content

Instantly share code, notes, and snippets.

@asaushkin
Last active December 30, 2016 22:07
Show Gist options
  • Save asaushkin/5c88f6dadb88fbeca20be8c18f30657b to your computer and use it in GitHub Desktop.
Save asaushkin/5c88f6dadb88fbeca20be8c18f30657b to your computer and use it in GitHub Desktop.
Create multimodule maven projects in the non interactive mode
#!/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