Skip to content

Instantly share code, notes, and snippets.

@brandtg
Created July 26, 2015 21:13
Show Gist options
  • Save brandtg/e49f57e34b63cfae4afd to your computer and use it in GitHub Desktop.
Save brandtg/e49f57e34b63cfae4afd to your computer and use it in GitHub Desktop.
Uses maven archetype to generate a Dropwizard application
#!/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