[ 
https://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MPH-53:
------------------------------

    Component/s: describe
    Description: 
{{mvn help:describe}} returns a different version than {{mvn 
help:effective-pom}} returns:

{noformat}
> 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
{noformat}

However, when I run {{mvn help:effective-pom}}

I get
{code:xml}
...
    <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>
...
{code}

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

  was:
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

    
> mvn help:describe returns the version that is specified in metadata instead 
> of  the one in the parent pom
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-53
>                 URL: https://jira.codehaus.org/browse/MPH-53
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>          Components: describe
>    Affects Versions: 2.0.1
>         Environment: windows xp
> tested with mvn 2.0.8 & 2.0.9
>            Reporter: Rintcius Blok
>             Fix For: Backlog
>
>
> {{mvn help:describe}} returns a different version than {{mvn 
> help:effective-pom}} returns:
> {noformat}
> > 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
> {noformat}
> However, when I run {{mvn help:effective-pom}}
> I get
> {code:xml}
> ...
>     <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>
> ...
> {code}
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to