Details
Description
mvn help:describe returns a different version than mvn help:effective-pom returns:
> mvn help:describe -Dplugin=surefire ... [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.2' ----------------------------------------------- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.2 Goal Prefix: surefire
However, when I run mvn help:effective-pom
I get
...
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<includes>
<include>**/*Test.java</include>
</includes>
<format>html</format>
</configuration>
</plugin>
</plugins>
</pluginManagement>
...
My pom structure is quite simple: just a parent pom.xml with the pluginmanagement section as above and a child pom using that. I have tested with both maven 2.0.8 and 2.0.9.
See the discussion here: http://www.nabble.com/Wrong-output-of-mvn-help%3Adescribe--td19168212.html
Same with Maven 2.1.0.
In <pluginManagement> of a Corporate Pom I use javadoc plugin 2.3, while latest is 2.5.
effective-pom returns 2.3. describe returns 2.5.
I don't think it's a bug. I think help:describe just describe the latest version.
When I type : mvn help:describe -Dplugin=org.apache.maven.plugins:maven-javadoc-plugin
I'm using a "artifact identifier" syntax which usually includes version (which I skipped). And I guess "LATEST" is used when I do not give explicit version.
It looks like to me that help:describe doesn't read pom.xml at all (except for repository locations?). It only operates on repository. right ?