Run a specific version of the maven plugin through the command line

What if I (for example) have 2 versions of the same maven plugin - versions-maven-plugin for example. There are versions 1.0 and 2.0 in my repository. When I execute the following command, it looks like version 1.0:

mvn -e versions: display-plugin-updates

How can I explicitly specify version 2.0?

+7
source share
1 answer

A simple solution is to define groupId / artifactId and, of course, the next version:

 mvn -e org.codehaus.mojo:versions-maven-plugin:2.0:display-plugin-updates 
+15
source

All Articles