1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash . jh if [[ $# != 3 ]]; then usage exit 1 fi mvn_repo="`$jh_cmd mvn-localrepo`" mvn_groupId=$1 mvn_artifactId=$2 mvn_version=$3 dir="${mvn_repo}/${mvn_groupId}/${mvn_artifactId}/${mvn_version}" file="${mvn_artifactId}-${mvn_version}" echo "${dir}/${file}"