[
https://issues.apache.org/jira/browse/MNG-5237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-5237.
-------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> Cannot download maven dependencies through NTLM proxy
> -----------------------------------------------------
>
> Key: MNG-5237
> URL: https://issues.apache.org/jira/browse/MNG-5237
> Project: Maven
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 3.0.4
> Environment: windows xp64 using cygwin
> Reporter: Niels Mordt-Ostergaard
> Priority: Major
>
> Using proxy in settings.xml, I was able to download maven dependencies in
> 3.0.3, but this seems to be broken with 3.0.4:
> Proxy definition in settings.xml (hidden ip adress below, but correct proxy
> ip on my system):
> {code:xml} <proxies>
> <proxy>
> <id>optional</id>
> <active>true</active>
> <protocol>http</protocol>
> <username></username>
> <password></password>
> <host>xxx.xx.xx.xx</host>
> <port>8080</port>
> <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
> </proxy>
> </proxies>{code}
> Output from 3.0.3:
> {noformat}$ mvn -V clean
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: C:\Program Files\apache-maven-3.0.3
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: no_NO, platform encoding: Cp1252
> OS name: "windows xp", version: "5.2", arch: "amd64", family: "windows"
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building <xxx hidden xxx>
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
> (5 KB at 4.9 KB/sec)
> ..... and so on...
> Output from 3.0.4:
> $ mvn -V clean
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Maven home: C:\Program Files\apache-maven-3.0.4
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: no_NO, platform encoding: Cp1252
> OS name: "windows xp", version: "5.2", arch: "amd64", family: "windows"
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building <xxx hidden xxx>
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.390s
> [INFO] Finished at: Fri Feb 03 13:14:35 CET 2012
> [INFO] Final Memory: 5M/490M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of
> its dependencies could not be resolved: Failed to read artifact descriptor
> for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer
> artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to
> central (http://repo.maven.apache.org/maven2): Access denied to:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom,
> ReasonPhrase:Forbidden. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)