简体   繁体   English

如何在Maven中获取工件的“特定次要版本”

[英]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 例如,对于春季版本“ 4.0.0”,有两个次要版本

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. 这些就是Maven认为的SNAPSHOT构建,通常是适当发行版之间的中间版本。 If you specify your version as 4.0.0.BUILD-SNAPSHOT Maven retrieves the most recent one. 如果将版本指定为4.0.0.BUILD-SNAPSHOT Maven将检索最新的版本。

Note that in general these should be consider development versions, not necessarily fit for general use. 请注意,一般而言,这些应视为开发版本,不一定适合一般用途。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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