Hi Greg,

I'm sure there is a way and you'll have to wait for an archiva dev to get back 
to you but as an alternative there is the maven-metadata.xml file which you 
could parse to get the values.
e.g.
http://repo.opencsta.org:8080/archiva/repository/snapshots/org/opencsta/client/2.0-SNAPSHOT/maven-metadata.xml
Has the details for the client-2.0-SNAPSHOT.jar

Here are the files in the directory: 
http://repo.opencsta.org:8080/archiva/repository/snapshots/org/opencsta/client/2.0-SNAPSHOT/
and the actual repo view 
http://repo.opencsta.org:8080/archiva/browse/org.opencsta/client/2.0-SNAPSHOT 
if you can call it that.

Are you just using bash scripts to do some packaging/deploying/testing?
Maybe just wget that maven-metadata.xml file and grep build number and 
timestamp and construct the URL from that?

HTH,
Chris


On 21/02/2012, at 7:54 AM, Greg Foreman wrote:

> Is there a simple URL for downloading an artifact?  I know this URL returns
> the artifact page:
> 
> http://<host>:<port>/archiva/browse/<groupId>/<artifactId>/<version>
> 
> But is there a URL for fetching the artifact (WAR file in this case)
> without having to know the associated timestamp extension? Like:
> 
> http://
> <host>:<port>/archiva/browse/<groupId>/<artifactId>/<version>/<mywebapp>.war
> 
> I would like to incorporate a simple wget into my deploy process without
> having to provide the exact timestamp info.

Reply via email to