Maven
  1. Maven
  2. MNG-3328

Allow multiple profile activation properties.

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: 3.x / Backlog
    • Component/s: Profiles
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The pom model should be changed to allow multiple properties to activate a profile. So the profile activation section could look something like this:

      <activation>
        <properties>
          <my-prop-1>some-value</my-prop-1>
          <my-prop-2>another-value</my-prop-2>
        </properties>
      </activation>
      

      This would provide more flexibility in profile activation.

        Issue Links

          Activity

          Hide
          Matthew Adams added a comment -

          +1 for conditional operators, especially OR. I could really use this!

          Show
          Matthew Adams added a comment - +1 for conditional operators, especially OR. I could really use this!
          Hide
          Matthew Adams added a comment -

          Just noticed that, as of this writing, this issue is #5 in popularity:
          http://jira.codehaus.org/browse/MNG#selectedTab=com.atlassian.jira.plugin.system.project%3Apopularissues-panel

          Can the project get this resourced?

          Show
          Matthew Adams added a comment - Just noticed that, as of this writing, this issue is #5 in popularity: http://jira.codehaus.org/browse/MNG#selectedTab=com.atlassian.jira.plugin.system.project%3Apopularissues-panel Can the project get this resourced?
          Hide
          Pala Gabriel added a comment -

          Guys this defect is 5 years old now. What the hell are you waiting for ?

          Show
          Pala Gabriel added a comment - Guys this defect is 5 years old now. What the hell are you waiting for ?
          Show
          Gábor Lipták added a comment - try this: https://github.com/kpiwko/el-profile-activator-extension
          Hide
          Richard Calmbach added a comment -

          Full support for boolean expressions for activation conditions would be really useful. At a minimum, multiple properties should be treated as "AND", the way it was always intended. You can do "OR" by duplicating a profile (ugly but at least possible), but currently, there is no way to do "AND" - a serious limitation.

          Show
          Richard Calmbach added a comment - Full support for boolean expressions for activation conditions would be really useful. At a minimum, multiple properties should be treated as "AND", the way it was always intended. You can do "OR" by duplicating a profile (ugly but at least possible ), but currently, there is no way to do "AND" - a serious limitation.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Gier
            • Votes:
              87 Vote for this issue
              Watchers:
              71 Start watching this issue

              Dates

              • Created:
                Updated: