How do I execute a specific version of Maven plugin goal from command line using plugin prefix?

Viewed 458

I want to execute mvn dependency:get from command line. I have 3 versions of maven-dependency-plugin installed locally: 2.1, 2.8 and 3.2.0. Maven is selecting 2.8 to execute the command.

How do I tell Maven to use 3.2.0 instead? Most of the time I would like to run LATEST (or RELEASE). How does Maven choose the version? I know that I can use full name to specify version but I prefer the short syntax with plugin prefix.

1 Answers
Related