archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Foreman <gforema...@gmail.com>
Subject Re: simple download url?
Date Wed, 22 Feb 2012 14:52:43 GMT
Hello Chris,

I was missing something.  I read up on snapshot vs. release naming
conventions and realized that just dropping snapshot from the artifact id
drops the timestamp.  I am good to go now.

Thanks,
Greg

On Mon, Feb 20, 2012 at 4:43 PM, Chris Mylonas <chris@opencsta.org> wrote:

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message