Philippe GRANET created MWRAPPER-142:
----------------------------------------

             Summary: 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


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}}

{{}}



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

Reply via email to