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

Shell scripts break on LF in config for Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.1
    • 3.3.2
    • Maven Wrapper Scripts
    • None
    • Patch, Important

    Description

      Today, I updated the Maven Wrapper in a project I have on GitHub by running `./mvnw wrapper:wrapper`, and then pushed it to GitHub.

      It appears that upon doing this, the bash scripts no longer work due to how newlines are being interpreted in the maven-wrapper.properties file.

      + ./mvnw --version
      distributionUrl 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
      '
      

      This appears to just affect when running on GitHub actions with a Windows runner and the `bash` shell.

      I will see if I can find the issue and raise a fix in an MR

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              ascopes Ashley Scopes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: