Skip to content

Instantly share code, notes, and snippets.

@WesJD
Last active March 20, 2019 02:10
Show Gist options
  • Save WesJD/39b8f0c88f74bc952e27a737d3a67234 to your computer and use it in GitHub Desktop.
Save WesJD/39b8f0c88f74bc952e27a737d3a67234 to your computer and use it in GitHub Desktop.
Useful for AnvilGUI and its dependencies.
read -p "What is the file path? " path
read -p "What is the groupId? " groupId
read -p "What is the artifactId? " artifactId
read -p "What is the version? " version
mvn install:install-file -Dfile=$path -DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version -Dpackaging=jar -DgeneratePom=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment