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/05 13:42:00 UTC

[jira] [Updated] (MWRAPPER-18) using MVNW_REPOURL, wrong Maven version is downloaded

     [ https://issues.apache.org/jira/browse/MWRAPPER-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MWRAPPER-18:
----------------------------------
    Affects Version/s: 0.5.6

> using MVNW_REPOURL, wrong Maven version is downloaded
> -----------------------------------------------------
>
>                 Key: MWRAPPER-18
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-18
>             Project: Maven Wrapper
>          Issue Type: Bug
>    Affects Versions: 0.5.6
>            Reporter: Herve Boutemy
>            Priority: Major
>             Fix For: 3.0.3
>
>
> I have configured my project to use Maven 3.8.3: it perfectly works when not using MVNW_REPOURL
> But if I configure my local repository with MVNW_REPOURL, the wrong Maven version is downloaded and installed (in the directory of Maven 3.8.3)
> {noformat}$ MVNW_REPOURL=http://localhost:8081/nexus/content/repositories/central MVNW_VERBOSE=true ./mvnw -v
> Found .mvn/wrapper/maven-wrapper.jar
> /home/herve/tmp/maven-wrapper
> Takari Maven Wrapper 0.5.6
> Detected MVNW_REPOURL environment variable http://localhost:8081/nexus/content/repositories/central
> Downloading Maven binary from http://localhost:8081/nexus/content/repositories/central/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
> Downloading http://localhost:8081/nexus/content/repositories/central/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
> .
> .
> Unzipping /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t/apache-maven-3.8.3-bin.zip to /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t
> Set executable permissions for: /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t/apache-maven-3.6.3/bin/mvn
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin/5a6n1u8or3307vo2u2jgmkhm0t/apache-maven-3.6.3
> Java version: 1.8.0_202, vendor: AdoptOpenJdk, runtime: /home/herve/local/.jdk/jdk8u202-b08/jre
> Default locale: fr_FR, platform encoding: UTF-8
> OS name: "linux", version: "5.4.0-91-generic", arch: "amd64", family: "unix"
> {noformat}
> as seen in the output, Maven 3.6.3 is downloaded then installed in /home/herve/.m2/wrapper/dists/apache-maven-3.8.3-bin 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)