summaryrefslogtreecommitdiff
path: root/jh-mvn-basename.sh
blob: 7c1d8a15d193f5150b4b6adbc4220c2686347595 (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=$0
mvn_artifactId=$1
mvn_version=$2

dir="${mvn_repo}/${mvn_groupId}/${mvn_artifactId}/${mvn_version}"
file="${mvn_artifactId}-${mvn_version}"

echo "${dir}/${file}"