8

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

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

Saad Farooq
  • 13,172
  • 10
  • 68
  • 94

2 Answers2

29

To check maven plugin version in eclipse:

  • Click Window –> Preferences –> Maven –> Installation . It will show you installation window with Maven version.
user3468976
  • 629
  • 7
  • 4
5

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

<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.

khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • The above snippet can also be found on their website: http://mojo.codehaus.org/versions-maven-plugin/usage.html – ruhong Jan 19 '15 at 01:22