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

Maven Wrapper creates empty file when it fails behind proxy 407

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.6
    • 3.1.0
    • Maven Wrapper Scripts
    • None
    • Proxy with authentication, http_proxy set without authentication

    Description

      Hi,

       

      when executing `./mvnw` behind a proxy and the proxy authentication does not succeed, wget will still create an empty file .mvn/maven-wrapper.jar.

       

      Subsequent calls to ./mvnw will see the existing (but empty) file and maven-wrapper will not attempt to redownload it. There is no clue what is going wrong, the only message is "Main class not found".

       

      Suggested fixes:

      • Check curl/wget return codes and delete the files if they got touched.
      • Even if curl/wget were not invoked, delete empty files.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              bmarwell Benjamin Marwell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: