You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James Nord (JIRA)" <ji...@codehaus.org> on 2009/12/10 12:20:59 UTC

[jira] Created: (MENFORCER-88) enforcer ignores super pom definitions.

enforcer ignores super pom definitions.
---------------------------------------

                 Key: MENFORCER-88
                 URL: http://jira.codehaus.org/browse/MENFORCER-88
             Project: Maven 2.x Enforcer Plugin
          Issue Type: Bug
          Components: Standard Rules
    Affects Versions: 1.0-beta-1
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) Java version: 1.6.0_16 Java home: C:\Java\jdk1.6.0_16\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
            Reporter: James Nord
            Priority: Minor
         Attachments: pom.xml

The RequirePluginVersions rule incorrectly ignores any versions defiend in the Super POM.

This is inconistent with the documentation,

"This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom."

The POM's implicit parent is the Super POM.

Expected outcome:

The attached project (to be used as an Integration Test) should pass the validate stage with Maven 2.2.1

Actual outcome:

The project build fails with:
Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowed )
org.apache.maven.plugins:maven-clean-plugin.    The version currently in use is 2.3
org.apache.maven.plugins:maven-deploy-plugin.   The version currently in use is 2.4
org.apache.maven.plugins:maven-install-plugin.  The version currently in use is 2.3
org.apache.maven.plugins:maven-site-plugin.     The version currently in use is 2.0.1

All these plugins have their versions defined 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

        

[jira] Closed: (MENFORCER-88) enforcer ignores super pom definitions.

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MENFORCER-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MENFORCER-88.
--------------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

This works as designed, users should not rely on the super POM plugin versions because these change between Maven versions and render the build subject to the build environment.

> enforcer ignores super pom definitions.
> ---------------------------------------
>
>                 Key: MENFORCER-88
>                 URL: http://jira.codehaus.org/browse/MENFORCER-88
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.0-beta-1
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) Java version: 1.6.0_16 Java home: C:\Java\jdk1.6.0_16\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: James Nord
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>         Attachments: pom.xml
>
>
> The RequirePluginVersions rule incorrectly ignores any versions defiend in the Super POM.
> This is inconistent with the documentation,
> "This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom."
> The POM's implicit parent is the Super POM.
> Expected outcome:
> The attached project (to be used as an Integration Test) should pass the validate stage with Maven 2.2.1
> Actual outcome:
> The project build fails with:
> Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowed )
> org.apache.maven.plugins:maven-clean-plugin.    The version currently in use is 2.3
> org.apache.maven.plugins:maven-deploy-plugin.   The version currently in use is 2.4
> org.apache.maven.plugins:maven-install-plugin.  The version currently in use is 2.3
> org.apache.maven.plugins:maven-site-plugin.     The version currently in use is 2.0.1
> All these plugins have their versions defined 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