display-plugin-updates warns that version is not defined if same versio as in 
parent pom is defined
---------------------------------------------------------------------------------------------------

                 Key: MVERSIONS-13
                 URL: http://jira.codehaus.org/browse/MVERSIONS-13
             Project: Maven 2.x Versions Plugin
          Issue Type: Bug
    Affects Versions: 1.0-alpha-2, 1.0-alpha-1
         Environment: Maven 2.0.9 on linux.
            Reporter: Martin Höller


If I create a new project and define a <pluginManagement> section like the 
following
{code:xml}<pluginManagement>
 <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-clean-plugin</artifactId>
      <version>2.2</version>
    </plugin>
  </plugins>
</pluginManagement>
{code}
I get a warning for the clean plugin even if  a version was defined, when 
executing the display-plugin-updates goal:
{code} $ mvn org.codehaus.mojo:versions-maven-plugin:display-plugin-updates
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building testprj
[INFO]    task-segment: 
[org.codehaus.mojo:versions-maven-plugin:display-plugin-updates]
[INFO] ------------------------------------------------------------------------
[INFO] [versions:display-plugin-updates]
[INFO]
[INFO] All plugins are using the latest versions.
[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING]   maven-clean-plugin .......................... (from super-pom) 2.2
[WARNING]   maven-compiler-plugin ..................... (from super-pom) 2.0.2
[WARNING]   maven-deploy-plugin ......................... (from super-pom) 2.3
[WARNING]   maven-install-plugin ........................ (from super-pom) 2.2
[WARNING]   maven-jar-plugin ............................ (from super-pom) 2.2
[WARNING]   maven-resources-plugin ...................... (from super-pom) 2.2
[WARNING]   maven-site-plugin .................... (from super-pom) 2.0-beta-6
[WARNING]   maven-surefire-plugin ..................... (from super-pom) 2.4.2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Dec 09 10:36:43 CET 2008
[INFO] Final Memory: 6M/128M
{code}

The warning disappears, when I change the version to 2.1. It seems a warning is 
always printed, if the version defined in my project is identical to the 
version in the super pom.

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



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to