> -----Original Message-----
> From: Laird Nelson [mailto:[email protected]]
> Sent: Tuesday, November 19, 2013 8:46 PM
> To: Maven Users List
> Subject: Re: How to script the downloading of the latest snapshot of an
> artifact?
> 
> Have a look at this:
> http://stackoverflow.com/questions/7911620/using-the-nexus-rest-api-to-get-
> latest-artifact-version-for-given-groupid-artfic
> 
> Basically unless you want the pain of digging into yet another undocumented
> overly verbose alpha API to do this programmatically, use the (documented,
> stable, reasonably intuitive) Nexus REST API to do it for you.

Thanks.  For what we're doing, this is the best solution.  If we later want to 
implement build-based distribution, we might look at the other possibilities.

> On Tue, Nov 19, 2013 at 6:09 PM, KARR, DAVID <[email protected]> wrote:
> 
> > Someone I work with needs to build an automated solution to get the latest
> > version of a snapshot jar from our nexus server.  They've tried the
> > simplistic "wget/curl" solution, but that requires hardcoding the verbose
> > snapshot jar url.  What are cleaner ways to do this?
> >
> > This could be automated either from the "destination" end or from the
> > "source" end.  We have an automated build that produces the artifact he
> > needs, so I could script something on our build server that just scps the
> > artifact to a remote server (this would be the "source" end).
> >  Alternatively, we would do something on the destination end that downloads
> > the artifact.
> >
> > However it works, we need a way to just specify the artifact coordinates,
> > not the verbose snapshot jar path.
> >
> > Is this something that the Wagon plugin can do?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> 
> --
> http://about.me/lairdnelson

Reply via email to