#!/bin/bash -ex

pushd `dirname $0`/.. > /dev/null
root=$(pwd -P)
popd > /dev/null

# gather some data about the repo
source $root/ci/vars.sh

# Path to output JAR
src=$root/target/pz-jobcommon-LATEST.jar

# Build Spring-boot JAR
[ -f $src ] || mvn clean package -U

# stage the artifact for a mvn deploy
mv $src $root/$APP.$EXT

#!/bin/bash -ex

root=$(pwd -P)
popd > /dev/null
mkdir -p $root/.m2/repository

# gather some data about the repo
source $root/ci/vars.sh

# Path to output JAR
src=$root/target/pz-jobcommon-LATEST.jar

# Build Spring-boot JAR
[ -f $src ] || mvn clean package -U -Dmaven.repo.local="$root/.m2/repository"

# stage the artifact for a mvn deploy
mv $src $root/$APP.$EXT


Fix maven error cannot write to jslave/.m2
Fix maven error cannot write to jslave/.m2
