[MWRAPPER-142] distributionUrl could be interpolated with env variables
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Start with .mvn/wrapper/maven-wrapper.properties and trace how its distributionUrl value is consumed before the Maven distribution download. Confirm the ARTIFACTORY_URL environment variable is expanded in the URL, while preserving existing behavior for ordinary distribution URLs.
Written by the indexing model from the issue text.
Description
Philippe GRANET opened MWRAPPER-142 and commented
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://${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
1 votes, 2 watchers
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-wrapper
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-wrapper#442 ·
-
priority:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven-wrapper#280 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
apache/maven-wrapper#441 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/maven-wrapper#425 · 1 comment · 4 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/maven-wrapper#424 ·
All issues in apache/maven-wrapper
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100