You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2021/12/05 14:36:00 UTC

[jira] [Updated] (MWRAPPER-20) Maven Wrapper creates empty file when it fails behind proxy 407

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

Herve Boutemy updated MWRAPPER-20:
----------------------------------
    Affects Version/s: 0.5.6

> Maven Wrapper creates empty file when it fails behind proxy 407
> ---------------------------------------------------------------
>
>                 Key: MWRAPPER-20
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-20
>             Project: Maven Wrapper
>          Issue Type: Bug
>    Affects Versions: 0.5.6
>         Environment: Proxy with authentication, http_proxy set without authentication
>            Reporter: Benjamin Marwell
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 3.1.0
>
>
> Hi,
>  
> when executing `{color:#0747a6}{{./mvnw}}{color}` behind a proxy and the proxy authentication does not succeed, {color:#0747a6}{{wget}}{color} will still create an empty file {color:#0747a6}{{.mvn/maven-wrapper.jar}}{color}.
>  
> Subsequent calls to {color:#0747a6}{{./mvnw}}{color} 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.



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