#!/bin/bash -ex

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

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

[ -f $root/app.$EXT ] && exit

mvn dependency:get \
  -DremoteRepositories=nexus::default::$NEXUSURL \
  -DrepositoryId=nexus \
  -DartifactId=$APP \
  -DgroupId=io.piazzageo \
  -Dpackaging=$EXT \
  -Dtransitive=false \
  -Ddestination=$root/app.$EXT \
  -Dversion=$SHORT

#!/bin/bash -ex

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

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

[ -f $root/app.$EXT ] && exit

mvn dependency:get \
  -DremoteRepositories=nexus::default::$NEXUSURL \
  -DrepositoryId=nexus \
  -DartifactId=$APP \
  -DgroupId=io.piazzageo \
  -Dpackaging=$EXT \
  -Dtransitive=false \
  -Dversion=$SHORT

mvn dependency:copy \
  -DgroupId=core \
  -DartifactId=$APP \
  -Dversion=$SHORT \
  -Dtype=$EXT \
  -DoverWrite=true \
  -DoutputDirectory=$root \
  -DdestFileName=app.$EXT

Revert "Attempt to use destination property"
Revert "Attempt to use destination property"

This reverts commit 1a1bd46cc875167273284b4bfb7a2ff554945fde.
