display-plugin-updates: No warning for build.plugins.plugin without version 
specified
-------------------------------------------------------------------------------------

                 Key: MVERSIONS-69
                 URL: http://jira.codehaus.org/browse/MVERSIONS-69
             Project: Maven 2.x Versions Plugin
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: Maven 2.2.1
            Reporter: Pablo


Given the following POM:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>foo</groupId>
  <artifactId>bar</artifactId>
  <version>1.0-SNAPSHOT</version>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>
{code}

When running *mvn versions:display-plugin-updates*, I would expect to get a 
warning about the build-helper-maven-plugin not having its version specified, 
but it's not the case:
{code}
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'versions'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - foo:bar:jar:1.0-SNAPSHOT
[INFO]    task-segment: [versions:display-plugin-updates]
[INFO] ------------------------------------------------------------------------
[INFO] [versions:display-plugin-updates {execution: default-cli}]
[INFO] 
[INFO] The following plugin updates are available:
[INFO]   maven-clean-plugin ....................................... 2.2 -> 2.3
[INFO]   maven-install-plugin ..................................... 2.2 -> 2.3
[INFO]   maven-resources-plugin ................................... 2.3 -> 2.4
[INFO]   maven-site-plugin ............................... 2.0-beta-7 -> 2.0.1
[INFO] 
[WARNING] The following plugins do not have their version specified:
[WARNING]   maven-clean-plugin .......................... (from super-pom) 2.3
[WARNING]   maven-compiler-plugin ..................... (from super-pom) 2.0.2
[WARNING]   maven-deploy-plugin ......................... (from super-pom) 2.4
[WARNING]   maven-install-plugin ........................ (from super-pom) 2.3
[WARNING]   maven-jar-plugin ............................ (from super-pom) 2.2
[WARNING]   maven-resources-plugin ...................... (from super-pom) 2.4
[WARNING]   maven-site-plugin ......................... (from super-pom) 2.0.1
[WARNING]   maven-surefire-plugin ..................... (from super-pom) 2.4.3
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
{code}

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