]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - buildSite.sh
Add Jcr perspective
[gpl/argeo-slc.git] / buildSite.sh
index b84173dea55813dc4cde858c20f6cdb07bf5704c..b83896c54de98b1e9655f8ae8ac20f1760d57038 100755 (executable)
@@ -14,8 +14,9 @@ HOSTNAME=`hostname -f`
 DATE=`date -u`
 EXIT_STATUS=0
 
+export MAVEN_OPTS=-Xmx256m
 # BUILD
-mvn --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
@@ -24,8 +25,13 @@ else
        mail -s "Build@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < deploy.log
 fi
 
+# SDK
+#cd dist/org.argeo.slc.sdk
+#/usr/local/bin/mvn deploy
+#cd ../..
+
 # SITE
-mvn --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
@@ -33,4 +39,5 @@ else
        mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log
 fi
 
+
 exit $EXIT_STATUS