Jay Taylor's notes

back to listing index

Download an artifact from JitPack.io using Maven (Example)

[web search]
Original source (coderwall.com)
Tags: java jvm dependencies maven jitpack mvn coderwall.com
Clipped on: 2016-12-16

Last Updated: October 11, 2016
·
523
· jitpack
Image (Asset 1/1) alt=

Download an artifact from JitPack.io using Maven

If you want download a single artifact from the command line use Maven's dependency plug-in:

mvn dependency:get 
-DremoteRepositories=https://jitpack.io 
-Dartifact=com.github.User:Repo:Tag 
-Ddest=.

It will download the .jar file to the directory specified in -Ddest

Written by jitpack.io

Recommend
Say Thanks
Update Notifications Off
Respond

1 Response
Add your response

October 11, 2016 23:43
28235

This is awesome! For my case to download just the war from our project:

mvn dependency:get -DremoteRepositories=https://jitpack.io -Dartifact=com.github.inodb.cbioportal:cbioportal:v1.3.0-test-jitpack:war -Ddest=.
about 2 months ago ·