Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2848

Environment variables in profile activation not working

    Details

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

        Attachments

        1. MNG-2848.patch
          5 kB
          Richard van der Hoff

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: