As part of an automated deployment I need a script to download the latest version of an artifact from our internal repository.
Ideally this script will be with ant or a
You can use the Maven Dependency Plugin goal get together with LATEST as version for your artifact:
get
LATEST
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DremoteRepositories= -Dartifact=::LATEST -Dpackaging=jar -Ddest=/.jar