ChestShop-3/install_dependency_to_repo.sh

16 lines
525 B
Bash
Raw Normal View History

2014-06-29 16:40:49 +02:00
#!/bin/bash
echo "[Dependency installer]"
read -p "What is your dependency's file name? " filename
if [ "$filename" = "" ]; then
return
fi
read -p "What is your dependency's group ID? " groupID
read -p "What is your dependency's artifact ID? " artifactID
read -p "What is your dependency's version? " version
mvn install:install-file -DlocalRepositoryPath=repo -DcreateChecksum=true -Dpackaging=jar -Dfile=$filename -DgroupId=$groupID -DartifactId=$artifactID -Dversion=$version
echo "[Dependency installed!]"