jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Enforcer Plugin
  • MENFORCER-98

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MENFORCER-98.patch
    30/Mar/11 4:40 PM
    1 kB
    Jeff MAURY

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
jieryn added a comment - 03/Jul/10 8:44 AM

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 - 03/Jul/10 8:44 AM 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
Permalink
Dennis Lundberg added a comment - 20/Aug/10 5:58 PM

Using Maven 3.0-beta-2 seems to work.

Show
Dennis Lundberg added a comment - 20/Aug/10 5:58 PM Using Maven 3.0-beta-2 seems to work.
Hide
Permalink
Petr Kozelka added a comment - 09/Sep/10 3:08 AM

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 - 09/Sep/10 3:08 AM 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
Permalink
Robert Scholte added a comment - 22/Sep/10 2:28 PM

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 - 22/Sep/10 2:28 PM 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
Permalink
Brian Fox added a comment - 27/Oct/10 6:26 PM

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

Show
Brian Fox added a comment - 27/Oct/10 6:26 PM The warning is changed to info and the message is updated in 1.0
Hide
Permalink
Jeff MAURY added a comment - 30/Mar/11 4:40 PM

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 - 30/Mar/11 4:40 PM Please find patch for Maven3. I have tested it on a simple JAR project and got the same result as M2.
Hide
Permalink
Petr Kozelka added a comment - 11/Aug/11 5:04 AM

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 - 11/Aug/11 5:04 AM 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
Permalink
Vincent Massol added a comment - 30/Sep/11 8:02 AM

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

Show
Vincent Massol added a comment - 30/Sep/11 8:02 AM I'm also eagerly waiting for this one to be fixed...
Hide
Permalink
Jaromír Cápík added a comment - 02/Feb/12 10:23 AM

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 - 02/Feb/12 10:23 AM 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
Permalink
Ralf Eichinger added a comment - 21/Mar/12 10:26 AM

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 - 21/Mar/12 10:26 AM 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
Permalink
Paul Gier added a comment - 08/May/12 7:18 PM

Applied patch with minor changes in r1335846

Show
Paul Gier added a comment - 08/May/12 7:18 PM Applied patch with minor changes in r1335846

People

  • Assignee:
    Paul Gier
    Reporter:
    Anders Hammar
Vote (25)
Watch (21)

Dates

  • Created:
    06/May/10 1:57 AM
    Updated:
    08/May/12 7:18 PM
    Resolved:
    08/May/12 7:18 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.