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 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
    • Number of attachments :
      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

          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
          brianfox brianfox added a comment -

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

          Show
          brianfox brianfox 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.
          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.
          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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: