You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2021/12/06 21:07:00 UTC
[jira] [Closed] (MWRAPPER-25) fix installer messages
[ https://issues.apache.org/jira/browse/MWRAPPER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy closed MWRAPPER-25.
---------------------------------
Assignee: Herve Boutemy
Resolution: Fixed
done in https://github.com/apache/maven-wrapper/commit/1e4d39131c9fee5fab60c81924d01741c02c1b2c
{noformat}$ MVNW_VERBOSE=true ./mvnw -v
Found .mvn/wrapper/maven-wrapper.jar
/home/herve/projets/maven/sources/core/maven-wrapper
Apache Maven Wrapper 3.1.0-SNAPSHOT
Installing Maven distribution /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t
Exception in thread "main" java.lang.RuntimeException: Maven distribution '/home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t' contains too many directories. Expected to find exactly 1 directory.
{noformat}
> fix installer messages
> ----------------------
>
> Key: MWRAPPER-25
> URL: https://issues.apache.org/jira/browse/MWRAPPER-25
> Project: Maven Wrapper
> Issue Type: Bug
> Affects Versions: 0.5.6
> Reporter: Herve Boutemy
> Assignee: Herve Boutemy
> Priority: Major
> Fix For: 3.1.0
>
>
> {noformat}$ MVNW_VERBOSE=true ./mvnw -v
> Found .mvn/wrapper/maven-wrapper.jar
> /home/herve/projets/maven/sources/core/maven-wrapper
> Apache Maven Wrapper 3.0.3-SNAPSHOT
> Downloading Maven binary from https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip
> Exception in thread "main" java.lang.RuntimeException: Maven distribution 'https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip' contains too many directories. Expected to find exactly 1 directory.
> at org.apache.maven.wrapper.Installer.createDist(Installer.java:113)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:160)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:69)
> {noformat}
> 2 issues:
> 1. "Downloading Maven binary from ..." when we're not at download but installing to local directory
> 2. "RuntimeException: Maven distribution 'https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip' contains too many directories": it's not about download url but local installation directory
--
This message was sent by Atlassian Jira
(v8.20.1#820001)