I don't know. If i recall correctly, the help:describe mojo by default works on the latest version of the plugin being described, when I use it with Maven-3.0-beta1. I could be wrong, but that's how I recall tings. So, I always specify the version [1] when I use help:describe. That way I have full control of what version of the plugin that will be described. This is important I think, as there are differences between version of a plugin and I want to be sure to get the info of the version I'm working with.
/Anders [1] http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html#version On Wed, Jul 7, 2010 at 18:01, asookazian <asookaz...@gmail.com> wrote: > > > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >