Eclipse 中的 Maven 插件版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10563377/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:02:56  来源:igfitidea点击:

Versions Maven Plugin in Eclipse

eclipsemavenm2eclipseversions-maven-plugin

提问by Saad Farooq

How can I add the Versions-Maven-Plugin to my Eclipse projects ??

如何将 Versions-Maven-Plugin 添加到我的 Eclipse 项目中?

I tried the Add Pluginsmenu option but it doesn't seem to be able to find the plugin.

我尝试了Add Plugins菜单选项,但似乎无法找到插件。

采纳答案by khmarbaise

You have to add the versions maven plugininto the reporting part of your pom to create appropriate reports about dependency updates.

您必须将版本 maven 插件添加到 pom 的报告部分,以创建有关依赖项更新的适当报告。

<reporting>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>versions-maven-plugin</artifactId>
      <version>1.3.1</version>
      <reportSets>
        <reportSet>
          <reports>
            <report>dependency-updates-report</report>
            <report>plugin-updates-report</report>
            <report>property-updates-report</report>
          </reports>
        </reportSet>
      </reportSets>
    </plugin>
  </plugins>
</reporting>

You can not install the versions-maven-plugin in Eclipse, cause the version-maven-plugin is a Maven plugin and not a Eclipse plugin. But not an bad idea.

您不能在 Eclipse 中安装 versions-maven-plugin,因为 version-maven-plugin 是 Maven 插件而不是 Eclipse 插件。但不是一个坏主意。

回答by user3468976

To check maven plugin version in eclipse:

要在 Eclipse 中检查 Maven 插件版本:

  • Click Window –> Preferences –> Maven –> Installation . It will show you installation window with Maven version.
  • 单击窗口 –> 首选项 –> Maven –> 安装。它将显示带有 Maven 版本的安装窗口。