Execute specific version of a maven plugin via command line

maven, maven-3

Solution

The simple solution is to define the groupId/artifactId and of course the version like the following:

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

Problem

What if I have (for example) 2 versions of the same maven plugin - `versions-maven-plugin` for example. There is 1.0 and 2.0 versions already in my repository. When I execute the following command it looks like the 1.0 version is executed: mvn -e versions:display-plugin-updates How can I explicitly specify to use 2.0 version?

Original source

Related problems