You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Faizan Mubasher (JIRA)" <ji...@apache.org> on 2018/06/21 07:42:00 UTC

[jira] [Created] (MNG-6431) Maven not downloading jars behind proxy

Faizan Mubasher created MNG-6431:
------------------------------------

             Summary: Maven not downloading jars behind proxy
                 Key: MNG-6431
                 URL: https://issues.apache.org/jira/browse/MNG-6431
             Project: Maven
          Issue Type: Bug
          Components: Dependencies, POM, Settings
    Affects Versions: 3.5.3
         Environment: Windows 10 (Behind Corporate Proxy)
            Reporter: Faizan Mubasher


Maven (3.5.3) is unable to download *jars* behind corporate proxy. 
h4. settings.xml
{code:java}
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
 <proxies>
  <proxy>
 <id>skm--http-proxy</id>
 <active>true</active>
  <protocol>http</protocol>
 <host>my.proxy.ip.here</host>
  <port>8080</port>
 <username>faizanmubasher</username>
  <password>*****</password>
 </proxy>
 <proxy>
<id>skm--https-proxy</id>
 <active>true</active>
 <protocol>https</protocol>
 <host>my.proxy.ip.here</host>
 <port>8080</port>
 {<username>faizanmubasher</username>
 <password>*****</password>
 </proxy>
 </proxies>
 </settings>
{code}
{{Also tried this command:}}
{code:java}
set MAVEN_OPTS="-DhttpProxyHost=xxx.xx.xx.xx -DsocksProxyPort=8080"{code}
{{After that, running }}
{code:java}
mvn clean install -U{code}
{{ results *Not authorized by proxy , ReasonPhrase:Proxy Authorization Required*. However, it does download other files (like javadocs etc) except jars, an actual library.}}

{{The other Stackoverflow links:}}

{{[https://stackoverflow.com/questions/50943317/maven-not-downloading-jars-behind-proxy|http://example.com/]}}

[https://stackoverflow.com/questions/10033286/maven-proxy-settings-not-working] 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)