maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MNG-6431) Maven not downloading jars behind proxy
Date Thu, 21 Jun 2018 19:56:00 GMT

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

Robert Scholte closed MNG-6431.
-------------------------------
    Resolution: Not A Problem
      Assignee: Robert Scholte

> 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
>            Assignee: Robert Scholte
>            Priority: Critical
>              Labels: build, maven
>
> 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] 
>  
> {quote}Failure to transfer org.apache.maven:maven-archiver:pom:3.1.1 from https://repo.maven.apache.org/maven2
was cached in the local repository, resolution will not be reattempted until the update interval
of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.apache.maven:maven-archiver:pom:3.1.1 from/to central (https://repo.maven.apache.org/maven2):
Malformed reply from SOCKS server
> {quote}



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

Mime
View raw message