简体   繁体   中英

How can I fetch a “particular minor version” of an artifact in Maven

Is there a way to specify minor version along with the major one? For example for spring release "4.0.0", there are two minor versions

spring-aop-4.0.0.BUILD-20130814.154539-196.jar
spring-aop-4.0.0.BUILD-20130823.020236-203

Can I specify a specific minor version along with the dependency?

<dependency>
<groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>${org.springframework-version}</version>
</dependency>

These are what Maven would consider SNAPSHOT builds, which usually are intermediate versions in between proper releases. If you specify your version as 4.0.0.BUILD-SNAPSHOT Maven retrieves the most recent one.

Note that in general these should be consider development versions, not necessarily fit for general use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM