Alan Burlison created MNG-6459:
----------------------------------

             Summary: Maven does not interpolate envvars properly into config 
files
                 Key: MNG-6459
                 URL: https://issues.apache.org/jira/browse/MNG-6459
             Project: Maven
          Issue Type: Bug
          Components: Settings
    Affects Versions: 3.5.4
            Reporter: Alan Burlison


I have a project with a {{.mvn/maven.config}} with the following content:
{quote}-s .mvn/settings.xml
{quote}
and a .{{mvn/settings.xml}} containing:
{quote}
<settings>
  <localRepository>${user.home}/ltest/maven_cache</localRepository>
  <proxies>
    <proxy>
      <id>home</id>
      <active>${env.PROXY_ACTIVE}</active>
      <protocol>${env.PROXY_PROTO}</protocol>
      <host>${env.PROXY_HOST}</host>
      <port>${env.PROXY_PORT}</port>
    </proxy>
  </proxies>
</settings>
{quote}
and the following set in the environment:
{quote}
PROXY_PORT=8080
PROXY_HOST=192.168.2.1
PROXY_PROTO=http
PROXY_ACTIVE=true
{quote}

The {{${env.PROXY_HOST}}} value seems to be expanded correctly, but none of the 
other envvars are.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to