Anders Hammar wrote: > > 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 > >
I switched from 2.0.8 to 3.0-BETA1 and it used 2.2 again (I have 2.2 and 2.3 in my local repo). So the behavior is consistent with 2.0 and 3.0... C:\>mvn --version Apache Maven 3.0-beta-1 (r935667; 2010-04-19 10:00:39-0700) Java version: 1.5.0_22 Java home: C:\Program Files\Java\jdk1.5.0_22\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" C:\>mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-inst all-plugin -Dmedium=true [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-help-plugin:2.0.2:describe (default-cli) @ standalone-pom --- Downloading: http://repo1.maven.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxi a-sink-api-1.0-alpha-4.jar Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0 -alpha-5/wagon-file-1.0-alpha-5.jar Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.jar Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig htweight/1.0-alpha-5/wagon-http-lightweight-1.0-alpha-5.jar Downloaded: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-ligh tweight/1.0-alpha-5/wagon-http-lightweight-1.0-alpha-5.jar (8 KB at 26.6 KB/sec) Downloaded: http://repo1.maven.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxia -sink-api-1.0-alpha-4.jar (5 KB at 3.3 KB/sec) Downloaded: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0- alpha-5/wagon-file-1.0-alpha-5.jar (6 KB at 2.5 KB/sec) Downloaded: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repor ting-api/2.0/maven-reporting-api-2.0.jar (7 KB at 2.0 KB/sec) [INFO] Plugin: 'org.apache.maven.plugins:maven-install-plugin:2.2' ----------------------------------------------- Group Id: org.apache.maven.plugins Artifact Id: maven-install-plugin Version: 2.2 Goal Prefix: install Description: Maven Plugins Mojos: Goal: 'install-file' Description: Installs a file in local repository. Goal: 'install' Description: Installs project's main artifact in local repository. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.875s [INFO] Finished at: Wed Jul 07 10:01:56 PDT 2010 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ -- 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-tp512519p1044789.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]
