blob: a63374802faf5b1f916e8f391bf03021c18701c1 [file] [log] [blame]
#!/bin/bash
export MAVEN_OPTS=-Xmx1024m
if [ -z "$MAVEN_HOME" ]; then
echo "MAVEN_HOME not set"
exit 1
fi
if [ ! -e "$WORKSPACE/repository" ]; then
mkdir "$WORKSPACE/repository"
fi
SETTINGS=$WORKSPACE/settings.xml
if [ -e ~/.m2/settings.xml ]; then
sed -e "s&<!-- <localRepository/> -->&<localRepository>$WORKSPACE/repository</localRepository>&g" ~/.m2/settings.xml > $SETTINGS
else
echo "No local .m2/settings.xml file!"
fi
"$MAVEN_HOME/bin/mvn" -B -s "$SETTINGS" -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86 -Dtycho.showEclipseLog=true clean install