EXIT_STATUS=0
export MAVEN_OPTS=-Xmx256m
+export PATH=$PATH:/usr/local/bin
+
# BUILD
-mvn -up --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log
+/usr/local/bin/mvn -up --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log
EXIT_STATUS=$PIPESTATUS
if [ $EXIT_STATUS -eq 0 ]
then
fi
# SDK
-cd dist/org.argeo.slc.sdk
-mvn deploy
-cd ../..
+#cd dist/org.argeo.slc.sdk
+#/usr/local/bin/mvn deploy
+#cd ../..
# SITE
-mvn -up --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log
+/usr/local/bin/mvn -up --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log
if [ $PIPESTATUS -eq 0 ]
then
echo No need to send email for successful site generation