Peter,

        exactly what I was looking for. Thanks!

-jr

On Nov 13, 2009, at 1:32 PM, Hayes, Peter wrote:

You can use this url:

http://<host>:<port>/nexus/service/local/artifact/maven/redirect? r=<repository>&g=<groupId>&a=<artifactId>&v=<version>&p=<type>

Nexus will handle the SNAPSHOT conversion to latest so you don't need to read the metadata or anything like that.

Peter

-----Original Message-----
From: James Russo [mailto:[email protected]]
Sent: Friday, November 13, 2009 1:29 PM
To: Maven Users List
Subject: Re: obtain latest snapshot to put on website for auto-update?

Wayne,
        
        Thanks for your reply. I had thought the repo spec was fairly
standardized by maven, so regardless of repo manager I might be able
to accomplish this.  I will post it on the nexus user list though for
more input.

I think maybe the simplest solution would be to write a script to
authenticate against nexus (the HTTP based repo really), fetch the
maven-metadata.xml file which appears to have info on the latest
snapshot for a specific artifact and fetch it from there.

-jr


On Nov 13, 2009, at 11:12 AM, Wayne Fay wrote:

nexus to grab the latest snapshot and copy this to webserver? Is
there a
...
special "latest snapshot" link available in nexus or must I
download the

You do know about the Nexus User list, right? As a percentage of
users, maybe 15% of the Maven Users know anything about Nexus, vs
~100% of those on Nexus Users list.

Perhaps I should just setup a simple no artifacts pom file which
lists the
artifact as a dependency and let that maven grab it for me?

Sounds like a reasonable solution. Otherwise this sounds like a good
feature request for Nexus.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to