Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Extract m2 cache just before build is started
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Senthilnathan <rajivsen@ca.ibm.com>
  • Loading branch information
Rajiv Senthilnathan committed Dec 18, 2019
1 parent 3372c7f commit 226f47e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pfe/file-watcher/scripts/springScripts/spring-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ pkill java

# Run a maven build to generate the new jar
cd /root/app

if [ -f localm2cache.zip ]; then
echo "Extracting maven m2 cache for $PROJECT_NAME"
$JAVA_HOME/bin/jar -xf localm2cache.zip
rm -f localm2cache.zip
echo "Finished extracting maven m2 cache for $PROJECT_NAME"
fi

echo "Running Maven build for $PROJECT_NAME"
echo "mvn -Dmaven.repo.local=/root/app/.m2/repository -f ./pom.xml package -Dmaven.test.skip=true $MAVEN_SETTINGS --log-file "/root/logs/$MAVEN_BUILD.log""
mvn -Dmaven.repo.local=/root/app/.m2/repository -f ./pom.xml package -Dmaven.test.skip=true $MAVEN_SETTINGS --log-file "/root/logs/$MAVEN_BUILD.log"
Expand Down

0 comments on commit 226f47e

Please sign in to comment.