initializr/ci/scripts/build-project.sh

14 lines
344 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2018-11-09 18:20:58 +08:00
source $(dirname $0)/common.sh
repository=$(pwd)/distribution-repository
2019-03-02 06:22:04 +08:00
if [ -z "$(ls -A maven)" ]; then
echo "Maven cache not available."
else
echo "Maven cache found."
fi
pushd git-repo > /dev/null
./mvnw clean deploy -U -Pfull -DaltDeploymentRepository=distribution::default::file://${repository}
popd > /dev/null