如何使Maven使用版本范围内的最新发行版? [英] How to make maven use the latest release version within version range?
本文介绍了如何使Maven使用版本范围内的最新发行版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的maven项目中,我使用如下依赖项:
In my maven project I use dependencies like this:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>[4.2.2, 5.0)</version>
</dependency>
由于下一个主要版本(5.0)可能会更改API,因此我希望我的项目使用分支机构4.x可用的最新稳定版本.
Since the next major version (5.0) may change the API, I want my project to use the latest stable version available for branch 4.x.
今天早上的错误调查告诉我,此表达式[4.2.2,5.0)抢占了任何版本.就我而言:4.3-alpha1.
This morning bug investigation told me this expression [4.2.2, 5.0) grabs any version available. In my case: 4.3-alpha1.
如何使Maven使用版本范围内的最新发行版?
How to make maven use thelatest release version within version range?
推荐答案
查看全文