Skip to content

Instantly share code, notes, and snippets.

@enesusta
Created May 3, 2020 19:19
Show Gist options
  • Save enesusta/3d8173f4a18210f7323cd091a66faa57 to your computer and use it in GitHub Desktop.
Save enesusta/3d8173f4a18210f7323cd091a66faa57 to your computer and use it in GitHub Desktop.
mvn generate
#!/bin/bash
create() {
mvn archetype:generate \
-DgroupId=$1 \
-DartifactId=$2 \
-DpackageName=$3 \
-Dversion=1.0.0
}
echo "GroupID"
read group
echo "ArtifactID"
read artifact
echo "Package Name"
read package
create $group $artifact $package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment