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

Herve Boutemy closed MWRAPPER-18.
---------------------------------
      Assignee: Herve Boutemy
    Resolution: Fixed

fixed in 
https://github.com/apache/maven-wrapper/commit/2b8158f1f0c28a9393c382aae369fc3a18fb2e68

{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
Apache Maven Wrapper 3.0.3-SNAPSHOT
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.8.3/apache-maven-3.8.3-bin.zip
Downloading 
http://localhost:8081/nexus/content/repositories/central/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.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
{noformat}

> 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
>            Assignee: Herve Boutemy
>            Priority: Major
>             Fix For: 3.0.3
>
>
> I have configured my project to use Maven 3.8.1: 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.1)
> {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.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1-bin.zip
>  to 
> /home/herve/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m
> Set executable permissions for: 
> /home/herve/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.6.3/bin/mvn
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: 
> /home/herve/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/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.1-bin 



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

Reply via email to