You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dave Syer <da...@hotmail.com> on 2007/09/16 18:42:33 UTC
How do I specify a particular SNAPSHOT build?
Assuming a project is publishing nightly snapshots with timestamps, how to I
specify that I depend on a particular version? E.g.
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>4.2-incubator-SNAPSHOT</version>
</dependency>
works for me (modulo the fact that activemq for some reason keeps deleting
snapshots). And I have one in my local repo called
activemq-core-4.2-incubator-20070121.082022-35.jar (in a directory called
4.2-incubator-SNAPSHOT. How do I depend on that version precisely?
--
View this message in context: http://www.nabble.com/How-do-I-specify-a-particular-SNAPSHOT-build--tf4460071s177.html#a12718007
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I specify a particular SNAPSHOT build?
Posted by Kalle Korhonen <ka...@gmail.com>.
Specify that 4.2-incubator-20070121.082022-35 as version.
Kalle
On 9/16/07, Teody Cue Jr. <tc...@exist.com> wrote:
>
> Hi Dave,
>
> I don't think Maven is design so that projects can depend on a
> particular snapshot. Depending on a snapshot means that you're depending
> on the latest version of that snapshot. So when you execute a build,
> Maven will always check for the latest copy of that snapshot. If you'd
> want to depend on a specific snapshot for testing purposes, you can
> execute maven with the offline(-o) option. This will not download the
> latest copy of the snapshots from the web and use the ones in your local
> repository.
>
> Hope this helps.
>
> Teody :)
>
>
>
> Dave Syer wrote:
> > Assuming a project is publishing nightly snapshots with timestamps, how
> to I
> > specify that I depend on a particular version? E.g.
> >
> > <dependency>
> > <groupId>org.apache.activemq</groupId>
> > <artifactId>activemq-core</artifactId>
> > <version>4.2-incubator-SNAPSHOT</version>
> > </dependency>
> >
> > works for me (modulo the fact that activemq for some reason keeps
> deleting
> > snapshots). And I have one in my local repo called
> > activemq-core-4.2-incubator-20070121.082022-35.jar (in a directory
> called
> > 4.2-incubator-SNAPSHOT. How do I depend on that version precisely?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How do I specify a particular SNAPSHOT build?
Posted by "Teody Cue Jr." <tc...@exist.com>.
Hi Dave,
I don't think Maven is design so that projects can depend on a
particular snapshot. Depending on a snapshot means that you're depending
on the latest version of that snapshot. So when you execute a build,
Maven will always check for the latest copy of that snapshot. If you'd
want to depend on a specific snapshot for testing purposes, you can
execute maven with the offline(-o) option. This will not download the
latest copy of the snapshots from the web and use the ones in your local
repository.
Hope this helps.
Teody :)
Dave Syer wrote:
> Assuming a project is publishing nightly snapshots with timestamps, how to I
> specify that I depend on a particular version? E.g.
>
> <dependency>
> <groupId>org.apache.activemq</groupId>
> <artifactId>activemq-core</artifactId>
> <version>4.2-incubator-SNAPSHOT</version>
> </dependency>
>
> works for me (modulo the fact that activemq for some reason keeps deleting
> snapshots). And I have one in my local repo called
> activemq-core-4.2-incubator-20070121.082022-35.jar (in a directory called
> 4.2-incubator-SNAPSHOT. How do I depend on that version precisely?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org