Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cli-archetype/create-project.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (26 sloc)
799 Bytes
This file contains 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
# | |
# This file is generated by the POM from the copy at /src/main/resources/create-project.sh | |
# So, modify that copy only! | |
# | |
groupId="$1" | |
artifactId="$2" | |
version="$3" | |
if [[ "$#" < 3 ]]; then | |
cat <<EOT | |
Creates a new command line project from our archetype. | |
$(basename $0) <groupId> <artifactId> <version> | |
EOT | |
exit 1 | |
fi | |
# First, download the archetype | |
mvn dependency:get \ | |
-Dartifact=uk.ac.ebi.maven:cli-archetype:3.0.3-SNAPSHOT\ | |
-DremoteRepositories=https://mbrandizi.jfrog.io/artifactory/maven | |
# So that now we can use it from the local repo | |
# | |
mvn archetype:generate \ | |
-DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version \ | |
-DarchetypeGroupId=uk.ac.ebi.maven \ | |
-DarchetypeArtifactId=cli-archetype \ | |
-DarchetypeVersion=3.0.3-SNAPSHOT \ | |
-DinteractiveMode=false |