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

maven-wrapper.properties created with Windows line breaks which mvnw can't handle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0, 3.3.0, 3.3.1
    • 3.3.2
    • Maven Wrapper Scripts
    • None
    • Windows, Git BASH

    Description

      Since around version 3.2.0 the maven-wrapper.properties is created with Windows line breaks for me. Unfortunately mvnw can't handle that. The error I receive is:

      'istributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found 'https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip

      When I manually change it to Unix line breaks it works again. Version 3.1.0 of the plug-in still creates it with Unix line breaks. Later versions seem to use the platform default instead. I.e. whenever I rerun wrapper:wrapper its broken again.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              Frettman Patrick Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: