Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-18

using MVNW_REPOURL, wrong Maven version is downloaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.6
    • 3.1.0
    • Maven Wrapper Jar
    • None

    Description

      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)

      $ 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"
      

      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

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            hboutemy Herve Boutemy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: