You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/03/07 11:49:00 UTC

[jira] [Assigned] (MNG-7721) Maven 3.9 resolver ignores proxy configured via MAVEN_OPTS

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

Tamas Cservenak reassigned MNG-7721:
------------------------------------

    Assignee: Tamas Cservenak

> Maven 3.9 resolver ignores proxy configured via MAVEN_OPTS
> ----------------------------------------------------------
>
>                 Key: MNG-7721
>                 URL: https://issues.apache.org/jira/browse/MNG-7721
>             Project: Maven
>          Issue Type: Bug
>          Components: Bootstrap &amp; Build
>    Affects Versions: 3.9.0
>            Reporter: Nejc Habjan
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 3.9.1
>
>
> The new native resolver seems to no longer respect HTTP/S proxy configuration set as options via `MAVEN_OPTS`. I haven't tried if this also happens when supplying the options directly via CLI as well, I assume that might be the case?
> Sample GitLab CI script that worked with 3.8.7 but now fails with 3.9:
> {code:java}
> image: maven:3.9
> build:
>   variables:
>     MAVEN_OPTS: >-
>       -Dhttp.proxyHost=$PROXY_HOST
>       -Dhttp.proxyPort=$PROXY_PORT 
>       -Dhttps.proxyHost=$PROXY_HOST
>       -Dhttps.proxyPort=$PROXY_PORT
>       -Dhttp.nonProxyHosts=$NO_PROXY_HOSTS
>   script:
>     - mvn clean install{code}
> Likely introduced in [https://github.com/apache/maven/pull/892].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)