Maven Download Latest Version Of Artifact ((free)) -
mvn org.apache.maven.plugins:maven-dependency-plugin:3.10.0:get \ -Dartifact=groupId:artifactId:LATEST Use code with caution.
: Run ./mvnw versions:display-dependency-updates to see a list of newer versions available for your project. maven download latest version of artifact
If you need the .jar file in a specific directory (e.g., for a deployment script), use dependency:copy . mvn org
apache.org/guides/mini/guide-mirror-settings.html">custom mirror or private repository for these downloads? apache
: You can target a specific artifact using the -Dincludes flag:
If you are writing a script and only need to know what the latest version number is without downloading the full artifact first, you can query the . Using curl and grep :
To download the latest version of a specific artifact directly into your local ~/.m2/repository , use the get goal. You can specify LATEST or RELEASE as the version.