Fail main maven build if java maven build fails

Java maven sub build could fail and main maven build still
succeed because of the shell script in between. Pass the maven
exit code back

Change-Id: I4df4ee7d782db21c89c49b0ee0a4741cbfa97edb
This commit is contained in:
Craig Bryant 2015-02-19 12:49:24 -07:00
parent 022d1a5a40
commit 92254990bc
1 changed files with 2 additions and 0 deletions

View File

@ -14,9 +14,11 @@ shift
# Invoke the maven 3 on the real pom.xml
( cd java; ${MVN} $* )
RC=$?
# Copy the jars where the publisher will find them
mkdir -p target
cp java/*/target/*.jar target
rm -fr apache-maven-3.2.1*
exit $RC