[MWRAPPER-142] distributionUrl could be interpolated with env variables
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 5h 26m
- Merged PRs (30d)
- 2
Description
**[Philippe GRANET](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=phgr100x)** opened **[MWRAPPER-142](https://issues.apache.org/jira/browse/MWRAPPER-142?redirect=false)** and commented
The contents of the `settings.xml` can be interpolated using the following expressions:
1. `{}${user.home{`}} and all other system properties _(since Maven 3.0)_
2. `{}${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_ :
```java
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:
```java
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`
---
1 votes, 2 watchers
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.