Maven
  1. Maven
  2. MNG-2848

Environment variables in profile activation not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.0.5
    • Fix Version/s: 2.0.9
    • Component/s: Profiles
    • Labels:
      None
    • Environment:
      Windows XP Professional, JDK 1.5

      Description

      When using an environment variable as a profile activation variable, it doesnt work, using either env.X or $

      {env.X}

      doesnt work.
      I found the same issue on the forums unresolved.

      http://www.nabble.com/profile-activation-based-on-environment-variables-tf2585492s177.html#a7208580

      Basically, the following doesnt work, where FOO is a windows environment variable (like PATH for example) :

       
       <profile>
        <id>haroon-workstation</id>
        <activation>
          <property>
            <name>env.FOO</name>
            <value>foo</value>
          </property>
         </activation>
          .......
      
       </profile> 
      
      1. MNG-2848.patch
        5 kB
        Richard van der Hoff

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12950281 ] Default workflow, editable Closed status [ 12986503 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12713381 ] Default workflow, editable Closed status [ 12753193 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          John Casey made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Assignee Vincent Siveton [ siveton ] John Casey [ jdcasey ]
          Brett Porter made changes -
          Fix Version/s 2.1-alpha-1 [ 13143 ]
          Siveton Vincent made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Siveton Vincent made changes -
          Fix Version/s Reviewed Pending Version Assignment [ 13555 ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 2.0.9 [ 13801 ]
          Resolution Fixed [ 1 ]
          Assignee Vincent Siveton [ siveton ]
          Fix Version/s 2.1-alpha-1 [ 13143 ]
          Richard van der Hoff made changes -
          Attachment MNG-2848.patch [ 31618 ]
          Maria Odea Ching made changes -
          Link This issue is related to MNG-1753 [ MNG-1753 ]
          Jason van Zyl made changes -
          Field Original Value New Value
          Fix Version/s Reviewed [ 13555 ]
          Muhammad Yahia created issue -

            People

            • Assignee:
              John Casey
              Reporter:
              Muhammad Yahia
            • Votes:
              10 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development