daggerok / versions-maven-plugin-example

Check for new version dependency updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

versions-maven-plugin

Check for new dependency updates

suppose you have in your pom.xml file:

<project>
  </build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <generateBackupPoms>false</generateBackupPoms>
          <allowSnapshots>true</allowSnapshots>
          <allowIncrementalUpdates>true</allowIncrementalUpdates>
          <excludeReactor>false</excludeReactor>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

then run command to check for new dependency versions update:

mvn versions:display-dependency-updates

see reference documentation