Maven版本插件:更新插件

时间:2015-12-01 23:32:22

标签: maven-3 versions-maven-plugin

我在运行版本时看到了一些更新:display-plugin-updates但我发现插件无法解决这些问题。我只是错过了一些东西吗?

这是输出:

The following plugin updates are available:
  maven-checkstyle-plugin ................................ 2.16 -> 2.17
  maven-release-plugin ................................. 2.5.2 -> 2.5.3
  maven-surefire-report-plugin ......................... 2.18.1 -> 2.19
  org.codehaus.mojo:findbugs-maven-plugin .............. 3.0.2 -> 3.0.3

The following plugins do not have their version specified:
  maven-clean-plugin ........................ (from super-pom) 3.0.0
  maven-deploy-plugin ....................... (from super-pom) 2.8.2
  maven-install-plugin ...................... (from super-pom) 2.5.2

Project defines minimum Maven version as: 3.0.4
Plugins require minimum Maven version of: 3.0.4
Note: the super-pom from Maven 3.0.5 defines some of the plugin
      versions and may be influencing the plugins required minimum Maven
      version.

No plugins require a newer version of Maven than specified by the pom.

Require Maven 3.1 to use the following plugin updates:
  org.bsc.maven:maven-processor-plugin .................... 3.1.0-beta1

是否有更新这些插件的目标和/或添加未定义的插件?

2 个答案:

答案 0 :(得分:3)

简短的回答是您需要手动更新pom.xml中的版本。

这并不是特别繁重,因为它不是经常需要做的事情。

答案 1 :(得分:1)

您可以让maven将依赖项更新为最新版本,如下所示:

mvn versions:use-latest-versions

如果您碰巧拥有属性中指定的版本,那么它们也可以像这样更新:

mvn versions:update-properties