This commit is contained in:
Andrea Manzi 2013-10-07 13:40:29 +00:00
parent b2b39b77bb
commit 2b77c94101
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
nexusurl=maven.research-infrastructures.eu/nexus
group=org.gcube.distribution
artifact=smartgears-distribution
repo=gcube-releases
@ -36,7 +36,7 @@ version_regexp=".*<baseVersion>\(.*\)</baseVersion>.*"
if [ -z "$version" ]; then
version=`curl -silent -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \
version=`curl -silent -L $nexusurl/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \
| grep "$version_regexp" | sed "s|$version_regexp|\1|"` #(first extract matching line, then extract matching group)
if [ -z "$version" ]; then
@ -51,7 +51,7 @@ fi
echo -e "\ndownloading smartgears-distribution-$version.tar.gz...\c"
http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"`
http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "$nexusurl/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"`
if [ ! "$http_code" = "200" ]; then
echo -e "\n\nERROR: cannot download version $version from $repo." >&2

View File

@ -14,6 +14,8 @@
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>download</include>
<include>clean-app-state</include>
<include>clean-container-state</include>
</includes>
<fileMode>755</fileMode>
<filtered>true</filtered>