[ 
https://issues.apache.org/jira/browse/MWRAPPER-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890928#comment-17890928
 ] 

Tamas Cservenak commented on MWRAPPER-15:
-----------------------------------------

This is not solved at all.

What I did:
* deployed master of maven4 to RAO 
(https://repository.apache.org/content/repositories/snapshots/org/apache/maven/apache-maven/4.0.0-beta-5-SNAPSHOT/apache-maven-4.0.0-beta-5-20241018.115030-49-bin.zip)
* edited .mvn/wrapper/maven-wrapper.properties with that URL above
* {{./mvnw}} invocation fails with error {{./mvnw: line 255: 
/tmp/tmp.TeQUuvXjNO/apache-maven-4.0.0-beta-5-20241018.115030-49/mvnw.url: No 
such file or directory}}

Reason is simple: wrapper **wrongly assumes** that zip filename and directory 
structure (when unzipped) are same, but are not. Filename is 
apache-maven-4.0.0-beta-5-20241018.115030-49-bin.zip (timestamped snapshot) but 
zip internally contains apache-maven-4.0.0-beta-5-SNAPSHOT directory.



> Support SNAPSHOT versions
> -------------------------
>
>                 Key: MWRAPPER-15
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-15
>             Project: Maven Wrapper
>          Issue Type: New Feature
>    Affects Versions: 3.0.2
>            Reporter: Slawomir Jaranowski
>            Priority: Normal
>
> In some case I would test build with the latest snapshot maven version.
> Such possibility can help other to easy test maven version under development.
> Would be great to have possibility to provide {{mavenVersion}} like:
> {{4.0.0-alpha-1-SNAPSHOT}} or even only {{SNAPSHOT}} in this case last 
> {{SNAPSHOT}} version should be used.



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

Reply via email to