[
https://issues.apache.org/jira/browse/PROXY-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Faizan Mubasher updated PROXY-27:
---------------------------------
Description:
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]
was:
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:}}
{{set MAVEN_OPTS="-DhttpProxyHost=xxx.xx.xx.xx -DsocksProxyPort=8080"}}{{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]
> Maven not downloading jars behind proxy
> ---------------------------------------
>
> Key: PROXY-27
> URL: https://issues.apache.org/jira/browse/PROXY-27
> Project: Commons Proxy
> Issue Type: Bug
> Environment: Windows 10 (*Corporate Proxy*)
> Reporter: Faizan Mubasher
> Priority: Critical
>
> 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)