You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "bmarwell (via GitHub)" <gi...@apache.org> on 2026/06/08 06:38:26 UTC
Re: [PR] fix(wrapper): preserve MVNW_REPOURL when exec maven in only-mvnw [maven-wrapper]
bmarwell commented on PR #415:
URL: https://github.com/apache/maven-wrapper/pull/415#issuecomment-4646058482
@yeikel But the inconsistency is the UNSET.
Try running for a private repo:
```bash
$ MVNW_REPOURL=https://your-custom-mirror/repo mvn wrapper:wrapper -Dtype=only-script -Dmaven=4.0.0-rc-5
# works, RepoURL is used in .mvn/wrapper/maven-wrapper.properties
$ MVNW_REPOURL=https://your-custom-mirror/repo ./mvnw wrapper:wrapper -Dtype=only-script -Dmaven=4.0.0-rc-5
# RepoURL is not used, defaults is used in .mvn/wrapper/maven-wrapper.properties
# which is: distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/4.0.0-rc-5/apache-maven-4.0.0-rc-5-bin.zip
```
I find this difference surprising to say the least.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org