Maven Enforcer Plugin
  1. Maven Enforcer Plugin
  2. MENFORCER-98

requirePluginVersions rule is not compatible with maven 3.0-beta-1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-1
    • Fix Version/s: 1.1
    • Component/s: Standard Rules
    • Labels:
      None
    • Environment:
      Windows XP
      Sun JDK 1.6.0_18
      Maven 3.0-beta-1

      Description

      When using the requirePluginVersions rule, I get a message saying "This rule is not compatible with the current version of Maven. The rule is not able to perform any checks."

        Issue Links

          Activity

          Anders Hammar created issue -
          Hide
          jieryn added a comment -

          Even though M3 already does a lot of the work this rule provides, this rule is far more flexible.. it would be nice if it was continued to be supported in M3.

          Show
          jieryn added a comment - Even though M3 already does a lot of the work this rule provides, this rule is far more flexible.. it would be nice if it was continued to be supported in M3.
          Hide
          Dennis Lundberg added a comment -

          Using Maven 3.0-beta-2 seems to work.

          Show
          Dennis Lundberg added a comment - Using Maven 3.0-beta-2 seems to work.
          Hide
          Petr Kozelka added a comment -

          with Maven 3.0-beta-3 it does not check again

          ...
          [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-plugin-versions) @ systinet-pom ---
          [WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks.
          ...
          
          Show
          Petr Kozelka added a comment - with Maven 3.0-beta-3 it does not check again ... [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-plugin-versions) @ systinet-pom --- [WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks. ...
          Hide
          Robert Scholte added a comment -

          In addition: it shouldn't say 'This rule..'. If your enforcer plugin contains multiple rules, there's no way to discover from the commandline which one caused trouble.

          Show
          Robert Scholte added a comment - In addition: it shouldn't say ' This rule..'. If your enforcer plugin contains multiple rules, there's no way to discover from the commandline which one caused trouble.
          Hide
          Brian E. Fox added a comment -

          The warning is changed to info and the message is updated in 1.0

          Show
          Brian E. Fox added a comment - The warning is changed to info and the message is updated in 1.0
          Hide
          Jeff MAURY added a comment -

          Please find patch for Maven3. I have tested it on a simple JAR project and got the same result as M2.

          Show
          Jeff MAURY added a comment - Please find patch for Maven3. I have tested it on a simple JAR project and got the same result as M2.
          Jeff MAURY made changes -
          Field Original Value New Value
          Attachment MENFORCER-98.patch [ 54481 ]
          Hide
          Petr Kozelka added a comment -

          on Maven 3.0.3, requirePluginVersions is still not working.
          Is there any better way to reach the functionality ?
          Is Jeff's patch considered wrong ?

          Just to remind, https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-AutomaticPluginVersionResolution states that it can be used to check for missing plugin versions in the POM. Right now that statement is false.

          Show
          Petr Kozelka added a comment - on Maven 3.0.3, requirePluginVersions is still not working. Is there any better way to reach the functionality ? Is Jeff's patch considered wrong ? Just to remind, https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-AutomaticPluginVersionResolution states that it can be used to check for missing plugin versions in the POM. Right now that statement is false.
          Hide
          Vincent Massol added a comment -

          I'm also eagerly waiting for this one to be fixed...

          Show
          Vincent Massol added a comment - I'm also eagerly waiting for this one to be fixed...
          Hide
          Jaromír Cápík added a comment -

          Hello.
          I'm also interested in this topic. I'd like to fix that in Fedora, but as we don't want to maintain any local patches forever, it could be good to know if the proposed patch is going to be accepted or not.
          Please, let me know.
          Thank You.
          Regards,
          Jaromir.

          Show
          Jaromír Cápík added a comment - Hello. I'm also interested in this topic. I'd like to fix that in Fedora, but as we don't want to maintain any local patches forever, it could be good to know if the proposed patch is going to be accepted or not. Please, let me know. Thank You. Regards, Jaromir.
          Hide
          Ralf Eichinger added a comment -

          This issue is still valid since I've tried with maven 3.0.4 and enforcer-plugin 1.0.1.
          Still it is not possible to use the <requirePluginVersions> section, so also the documentation at http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html seems to be simply wrong.

          Show
          Ralf Eichinger added a comment - This issue is still valid since I've tried with maven 3.0.4 and enforcer-plugin 1.0.1. Still it is not possible to use the <requirePluginVersions> section, so also the documentation at http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html seems to be simply wrong.
          Paul Gier made changes -
          Fix Version/s 1.1 [ 17443 ]
          Assignee Paul Gier [ pgier ]
          Hide
          Paul Gier added a comment -

          Applied patch with minor changes in r1335846

          Show
          Paul Gier added a comment - Applied patch with minor changes in r1335846
          Paul Gier made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Vincent Massol made changes -
          Link This issue relates to MENFORCER-133 [ MENFORCER-133 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:06:27 UTC 2015 [ 1428228387238 ]
          Mark Thomas made changes -
          Workflow jira [ 12721237 ] Default workflow, editable Closed status [ 12761760 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:50:18 UTC 2015 [ 1428277818417 ]
          Mark Thomas made changes -
          Workflow jira [ 12958727 ] Default workflow, editable Closed status [ 12995637 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          733d 17h 21m 1 Paul Gier 08/May/12 20:18

            People

            • Assignee:
              Paul Gier
              Reporter:
              Anders Hammar
            • Votes:
              25 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development