You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rintcius Blok (JIRA)" <ji...@codehaus.org> on 2008/08/29 09:11:48 UTC

[jira] Created: (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

mvn help:describe returns the version that is specified in metadata instead of  the one in the parent pom
---------------------------------------------------------------------------------------------------------

                 Key: MPH-53
                 URL: http://jira.codehaus.org/browse/MPH-53
             Project: Maven 2.x Help Plugin
          Issue Type: Bug
    Affects Versions: 2.0.1
         Environment: windows xp
tested with mvn 2.0.8 & 2.0.9
            Reporter: Rintcius Blok


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Commented: (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214747#action_214747 ] 

Brett Porter commented on MPH-53:
---------------------------------

Adding the plugin to your build works around this:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
    </plugin>
  </plugins>
</build>

Implicit ones don't work. I think this should be fixed in 3.0-alpha, but I'm noticing a further regression that it reports the latest release in both cases. This will need further investigation about where the cause is.

> mvn help:describe returns the version that is specified in metadata instead of  the one in the parent pom
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-53
>                 URL: http://jira.codehaus.org/browse/MPH-53
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    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:
> > 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=319779#comment-319779 ] 

Robert Scholte commented on MPH-53:
-----------------------------------

I've found a problem for M3.0.4:

{code:title=org.apache.maven.plugin.internal.DefaultPluginManager.verifyPlugin(Plugin, MavenProject, Settings, ArtifactRepository)}
...
        if ( plugin.getVersion() == null )
        {
            PluginVersionRequest versionRequest =
                new DefaultPluginVersionRequest( plugin, session.getRepositorySession(),
                                                 project.getRemotePluginRepositories() );
            plugin.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() );
        }
...
{code}

The {{Model}} is not passed to the {{versionRequest}}, so the version is resolved based on repositories.

There's no clear description of what the {{verifyPlugin()}} should do, so it's hard to tell if we can just add the {{Model}}.

                
> 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

        

[jira] Commented: (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Keith David Winkler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201498#action_201498 ] 

Keith David Winkler commented on MPH-53:
----------------------------------------

Still happens in version 2.2.1

Effective pom specifies resources plugin 2.3

"mvn help:describe -Dplugin=resources" downloads and lists help for version 2.4.1




In any case this FAQ entry seems wrong: http://maven.apache.org/general.html#plugin-version

> mvn help:describe returns the version that is specified in metadata instead of  the one in the parent pom
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-53
>                 URL: http://jira.codehaus.org/browse/MPH-53
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>         Environment: windows xp
> tested with mvn 2.0.8 & 2.0.9
>            Reporter: Rintcius Blok
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Ha Ryon (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=176955#action_176955 ] 

Ha Ryon commented on MPH-53:
----------------------------

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 ?



> mvn help:describe returns the version that is specified in metadata instead of  the one in the parent pom
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-53
>                 URL: http://jira.codehaus.org/browse/MPH-53
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>         Environment: windows xp
> tested with mvn 2.0.8 & 2.0.9
>            Reporter: Rintcius Blok
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MPH-53) mvn help:describe returns the version that is specified in metadata instead of the one in the parent pom

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPH-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MPH-53:
----------------------------

    Fix Version/s: Backlog

> mvn help:describe returns the version that is specified in metadata instead of  the one in the parent pom
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-53
>                 URL: http://jira.codehaus.org/browse/MPH-53
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    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:
> > 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira