[ 
https://issues.apache.org/jira/browse/MWRAPPER-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philippe GRANET updated MWRAPPER-142:
-------------------------------------
    Description: 
The contents of the {{settings.xml}} can be interpolated using the following 
expressions:
 # {{{}$\{user.home{}}}} and all other system properties _(since Maven 3.0)_
 # {{{}$\{env.HOME{}}}} etc. for environment variables

I try the same with _.mvn/wrapper/maven-wrapper.properties,_ but actually, if 
you put this conf in maven-wrapper.properties :

{{distributionUrl=[https://$|https://$/]{ARTIFACTORY_URL}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
it generate this error:}}
wget: Failed to fetch 
[https://$|https://$/]{{{{}ARTIFACTORY_URL{}}}}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
{{ARTIFACTORY_URL env variable is not replaced}}

{{}}

  was:
The contents of the {{settings.xml}} can be interpolated using the following 
expressions:
 # {{${user.home}}} and all other system properties _(since Maven 3.0)_
 # {{${env.HOME}}} etc. for environment variables

I tray the same with .mvn/wrapper/maven-wrapper.properties, but actually, if 
you put this conf in maven-wrapper.properties :

{{distributionUrl=https://${ARTIFACTORY_URL}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
it generate this error:}}
wget: Failed to fetch 
https://${{{{}ARTIFACTORY_URL{}}}}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
{{ARTIFACTORY_URL env variable is not replaced}}

{{}}


> distributionUrl could be interpolated with env variables
> --------------------------------------------------------
>
>                 Key: MWRAPPER-142
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-142
>             Project: Maven Wrapper
>          Issue Type: New Feature
>            Reporter: Philippe GRANET
>            Priority: Major
>
> The contents of the {{settings.xml}} can be interpolated using the following 
> expressions:
>  # {{{}$\{user.home{}}}} and all other system properties _(since Maven 3.0)_
>  # {{{}$\{env.HOME{}}}} etc. for environment variables
> I try the same with _.mvn/wrapper/maven-wrapper.properties,_ but actually, if 
> you put this conf in maven-wrapper.properties :
> {{distributionUrl=[https://$|https://$/]{ARTIFACTORY_URL}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
> it generate this error:}}
> wget: Failed to fetch 
> [https://$|https://$/]{{{{}ARTIFACTORY_URL{}}}}/artifactory/remote-maven-central/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
> {{ARTIFACTORY_URL env variable is not replaced}}
> {{}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to