You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by youhaodeyi <yo...@gmail.com> on 2008/05/26 08:59:11 UTC
How to use snapshot dependency?
I defined a dependency in this way:
<dependency>
<groupId>image</groupId>
<artifactId>image</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
This dependency has been deployed into a repository and when I compile my
project (maven -U compile), I will get the error
Downloading:
http://3.36.231.203:8080/maven/repository/image/image/1.0-SNAPSHOT/image-1.0-SNAPSHOT.jar
image:image:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=image -DartifactId=image
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
It seems that maven failed to download the snapshot dependency. How can I
let maven download the latest version of the snapshot?
--
View this message in context: http://www.nabble.com/How-to-use-snapshot-dependency--tp17466763p17466763.html
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 to use snapshot dependency?
Posted by nicolas de loof <ni...@apache.org>.
The "http://3.36.231.203:8080/maven/repository<http://3.36.231.203:8080/maven/repository/image/image/1.0-SNAPSHOT/image-1.0-SNAPSHOT.jar>"
repository must be declared in your POM in <repositories> section with
<snaphots><enable>true
By default, maven never use snapshots (for builds reproductibility) until
you explmicitly force it.
Nico
2008/5/26 youhaodeyi <yo...@gmail.com>:
>
> I defined a dependency in this way:
>
> <dependency>
> <groupId>image</groupId>
> <artifactId>image</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
>
> This dependency has been deployed into a repository and when I compile my
> project (maven -U compile), I will get the error
> Downloading:
>
> http://3.36.231.203:8080/maven/repository/image/image/1.0-SNAPSHOT/image-1.0-SNAPSHOT.jar
>
> image:image:jar:1.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=image -DartifactId=image
> -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
> It seems that maven failed to download the snapshot dependency. How can I
> let maven download the latest version of the snapshot?
> --
> View this message in context:
> http://www.nabble.com/How-to-use-snapshot-dependency--tp17466763p17466763.html
> 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
>
>