summaryrefslogtreecommitdiff
path: root/jh-mvn-basename.sh
blob: 5b9dad4e75ea5715bb369e756fb5b5c21a341fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
. /usr/bin/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}"