Fix build.sh script.

This commit is contained in:
Greg Turnquist
2019-03-03 12:38:04 -06:00
parent e8de8268ad
commit 1bda98f9f5

View File

@@ -4,11 +4,11 @@ set -euo pipefail
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
spring_hateoas-examples_artifactory=$(pwd)/spring-hateoas-examples-artifactory
spring_hateoas_examples_artifactory=$(pwd)/spring-hateoas-examples-artifactory
rm -rf $HOME/.m2/repository/org/springframework/hateoas-examples 2> /dev/null || :
rm -rf $HOME/.m2/repository/org/springframework/hateoas 2> /dev/null || :
cd spring-hateoas-examples-github
./mvnw -Pdistribute -Dmaven.test.skip=true clean deploy \
-DaltDeploymentRepository=distribution::default::file://${spring_hateoas-examples_artifactory}
-DaltDeploymentRepository=distribution::default::file://${spring_hateoas_examples_artifactory}