【发布时间】:2014-10-13 06:27:37
【问题描述】:
我有以下依赖项(仅到目前为止)pom.xml
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.6.2.RELEASE</version>
</dependency>
这个依赖显然通过它的 pom.xml 依赖于其他“依赖”......当 maven 完成下载这些依赖时,我注意到它没有获取最新版本的 Spring 东西(4.0.6.RELEASE)...... . 它抓取了一个 3.2.x 版本。
如何强制 maven 获取最新版本的 Spring 内容?我是否需要显式修改我的 pom.xml 以包含所有依赖项,或者我可以为此使用一些“魔法”吗?
谢谢。
【问题讨论】:
-
当然,您需要更改您的 pom,因为您的 pom 描述了您的构建正在使用的内容,该内容已签入您的版本控制。