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

Require property rule interpolation does not work like profile activation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Not A Problem
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: Standard Rules
    • Labels:
      None

      Description

      The main benefit of profile activation is that a profile is activated by a property set outside of maven. It does not make any sense to active by a property if it is defined in the POM.

      If I set the following in my properties section:

      <properties>
      <myProp />
      </properties>
      

      This would evaluate the property to "true" and pass the enforcer rule. It makes absolutely no sense. Properties should be evaluated the same way as in the profile activation. POM properties are always present, thus making the hole enforcer thing obsolete.

      This issue is related to MENFORCER-115.

        Activity

        Michael Osipov created issue -
        Karl Heinz Marbaise made changes -
        Field Original Value New Value
        Resolution Not A Bug [ 6 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 10:06:27 UTC 2015 [ 1428228387238 ]
        Mark Thomas made changes -
        Workflow jira [ 12721255 ] Default workflow, editable Closed status [ 12761665 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 23:50:18 UTC 2015 [ 1428277818417 ]
        Mark Thomas made changes -
        Workflow jira [ 12958859 ] Default workflow, editable Closed status [ 12995770 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Osipov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development