Created
July 26, 2015 21:13
-
-
Save brandtg/e49f57e34b63cfae4afd to your computer and use it in GitHub Desktop.
Uses maven archetype to generate a Dropwizard application
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/bash | |
GROUP=$1 | |
ARTIFACT=$2 | |
APP_NAME=$3 | |
PACKAGE=`echo $APP_NAME | awk '{print tolower($0)}'` | |
echo "Creating application $PACKAGE.$APP_NAME $GROUP:$ARTIFACT" | |
mvn archetype:generate \ | |
-DgroupId=$GROUP \ | |
-DartifactId=$ARTIFACT \ | |
-Dversion=1.0 \ | |
-Dname=$APP_NAME \ | |
-Dpackage=$GROUP.$PACKAGE \ | |
-DarchetypeGroupId=io.dropwizard.archetypes \ | |
-DarchetypeArtifactId=java-simple \ | |
-DinteractiveMode=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment