
Added monasca_common to beginning of sub projects so they will be published Also added copy of created jars to target directory so they will be published Change-Id: I8b73754947b18183ef1e1e13d9b340dff69ca24c
23 lines
608 B
Bash
Executable File
23 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
# Download maven 3 if the system maven isn't maven 3
|
|
VERSION=`mvn -v | grep "Apache Maven 3"`
|
|
if [ -z "${VERSION}" ]; then
|
|
curl http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.tar.gz > apache-maven-3.2.1-bin.tar.gz
|
|
tar -xvzf apache-maven-3.2.1-bin.tar.gz
|
|
MVN=${PWD}/apache-maven-3.2.1/bin/mvn
|
|
else
|
|
MVN=mvn
|
|
fi
|
|
|
|
# Get rid of the java property name containing the args
|
|
shift
|
|
|
|
# Invoke the maven 3 on the real pom.xml
|
|
( cd java; ${MVN} $* )
|
|
|
|
# Copy the jars where the publisher will find them
|
|
mkdir -p target
|
|
cp java/*/target/*.jar target
|
|
|
|
rm -fr apache-maven-3.2.1*
|