Utility for downloading artifacts from maven repo without mvn/poms

whaley picture whaley · May 19, 2009 · Viewed 13.1k times · Source

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?

Answer

Pascal Thivent picture Pascal Thivent · Dec 10, 2009

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).