-
Notifications
You must be signed in to change notification settings - Fork 1
/
mvn-deploy
executable file
·32 lines (29 loc) · 1.16 KB
/
mvn-deploy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
out="/tmp/m2repository"
url="file://${out}"
# repositoryId=parse
file=
groupId=com.infstory
artifactId=android-beacon-library
version=
packaging=aar
# generatePom=false
javadoc=
for i in *.aar; do
case "$i" in
android-beacon-library-*.aar) # Parse-1.8.0.jar
file="$i"
version="${i##android-beacon-library-}"
version="${version%.aar}"
mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -Durl="$url" \
-Dfile="$file" \
-DgroupId="$groupId" \
-DartifactId="$artifactId" \
-Dversion="$version"
#-Dpackaging="$packaging" \
#-Djavadoc="$javadoc" \
echo $file
echo $version
;;
esac
done