Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-98

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

          Hide
          pgier Paul Gier added a comment -

          Applied patch with minor changes in r1335846

          Show
          pgier Paul Gier added a comment - Applied patch with minor changes in r1335846
          Hide
          datazuul 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
          datazuul 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
          jcapik 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
          jcapik 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
          vmassol Vincent Massol added a comment -

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

          Show
          vmassol Vincent Massol added a comment - I'm also eagerly waiting for this one to be fixed...
          Hide
          pkozelka 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
          pkozelka 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
          jeffmaury 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
          jeffmaury 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
          brianf@infinity.nu Brian E. Fox (imported) added a comment -

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

          Show
          brianf@infinity.nu Brian E. Fox (imported) added a comment - The warning is changed to info and the message is updated in 1.0
          Hide
          rfscholte 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
          rfscholte 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
          pkozelka 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
          pkozelka 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
          dennisl@apache.org Dennis Lundberg added a comment -

          Using Maven 3.0-beta-2 seems to work.

          Show
          dennisl@apache.org Dennis Lundberg added a comment - Using Maven 3.0-beta-2 seems to work.
          Hide
          jieryn 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 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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development