Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Utility for downloading artifacts from maven repo without mvn/poms [closed]

Is there a maven client that isn't mvn (the binary included with the maven distribution) I could use to pull down an artifact from a maven repository without using a pom? I'd like to use a maven repository as the repo for our ops team to pick up builds (including snapshots of builds) but I don't want them to have to mess around with writing poms and declaring dependencies in them. Ideally, I'm looking for just a cli client that I could just pass in a repo url and coordinates and download a given artifact. Does such a thing exist or am I better off writing a one-off script for this?

like image 907
whaley Avatar asked Dec 05 '22 06:12

whaley


1 Answers

I see 3 easy options:

  1. Just send them a link pointing on your artifact in your repository and have them use their browser.
  2. Install and use wget (wget http://path/to/artifact.extension).
  3. Install and use mvn dependency:get (requires mvn but doesn't require a pom.xml, see this answer for more details).
like image 188
Pascal Thivent Avatar answered Jan 03 '23 11:01

Pascal Thivent