Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute specific version of a maven plugin via command line [duplicate]

Tags:

maven

maven-3

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?

like image 712
Vic Avatar asked Apr 08 '13 11:04

Vic


1 Answers

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
like image 115
khmarbaise Avatar answered Nov 07 '22 14:11

khmarbaise