There are several downloaded versions of maven-dependency-plugin
in my local repository. In a metadata file placed in org/apache/maven/plugins/maven-dependency-plugin/
versions from 2.0-alpha-1
to 2.10
are listed.
Version 2.10
is set as release
and latest
.
Despite that when dependency:get
is executed as a standalone goal from CLI Maven uses the version 2.1
. This is the lesser downloaded version of the plugin. Moreover if the version is removed from the local repository Maven downloads it again.
Maven 3.0.4 is used.
Question: How does Maven determine which version of a plugin will be used when it's not specified explicitly?