When you don't specify the version of a plugin, Maven should download the
latest version. However, very often the version is defined through a
pluginManagement section. This could be either in your pom hierarchy or in
Maven's super-POM. In your case, the version of the antrun-plugin is defined
in the super-POM of Maven 3.0-beta-1.

/Anders

using maven 2.0.8, when i don't specify the version, it uses 2.2 when I run
this cmd:

C:\projects\clean\com.echo.cis.gui\com.echo.cis.gui.ear>mvn help:describe
-DgroupId=org.apache.maven.plugins -DartifactId=maven-install-plugin
-Dmedium=true

I have two versions in my local m2 repo:

C:\Documents and
Settings\asookazian\.m2\repo2\org\apache\maven\plugins\maven-install-plugin\2.2
C:\Documents and
Settings\asookazian\.m2\repo2\org\apache\maven\plugins\maven-install-plugin\2.3

The pom-4.0.0.xml (the super POM i'm assuming) does not specify the version
of the maven-install-plugin (there is no reference to maven-install-plugin
at all).

So how does Maven know to use 2.2 in this case?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/how-does-Maven-determine-which-version-to-download-for-a-plugin-when-no-version-specified-tp512519p1044765.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to