Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Is there a way to get Maven to download a specific snapshot version of a dependency? I know that specifying the dependency like this will download the lastest snapshot available:

<dependency>
<groupId>groupid</groupId>
<artifactId>artifact-id</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>

Is it possible to specify a specific snapshot version? (e.g.artifact-id-1.0.0-20090610.041042-5) This would be useful if the head snapshot build has broken something and the stable version of the dependency has yet to be officially released.

question from:https://stackoverflow.com/questions/1368625/maven-specific-version-of-a-snapshot-dependency

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
203 views
Welcome To Ask or Share your Answers For Others

1 Answer

Yes, you can. Any version that is in your maven repositories can be used. I've ran into some problems where the trasnsitive dependencies mucked with the version though. That's where mvn dependency:tree came in handy.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...