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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to