maven-wrapper icon indicating copy to clipboard operation
maven-wrapper copied to clipboard

[MWRAPPER-105] mvnd distributionURL support for mvn qualifiers

Open jira-importer opened this issue 2 years ago • 1 comments

Delany opened MWRAPPER-105 and commented

The wrapper cannot determine the correct URL for mvnd's new qualified form which allows selecting the mvn version, for instance

mvn wrapper:3.2.0:wrapper -Dmvnd=1.0-m6-m39 -Dtype=only-script

https://dist.apache.org/repos/dist/dev/maven/mvnd/1.0-m6/maven-mvnd-1.0-m6-m39-bin.zip

 


Affects: 3.2.0

jira-importer avatar Mar 23 '23 22:03 jira-importer

Peter Palaga commented

Hm... the question is what is the correct URL actually? There is plenty of platform specific distros.

Setting the distributionUrl in .mvn/wrapper/maven-wrapper.properties manually to e.g.

distributionUrl=https://downloads.apache.org/maven/mvnd/1.0-m6/maven-mvnd-1.0-m6-m39-linux-amd64.zip

would make the wrapper platform specific - which I think is not really expected.

I guess the distributionUrl should perhaps contain some sort of a platform placeholder that the wrapper script should be able to resolve at runtime?

distributionUrl=https://downloads.apache.org/maven/mvnd/1.0-m6/maven-mvnd-1.0-m6-m39-@platform@.zip

jira-importer avatar May 31 '23 15:05 jira-importer