This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219415 - Maven can not access remote repositories through proxy
Summary: Maven can not access remote repositories through proxy
Status: RESOLVED DUPLICATE of bug 211387
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 05:24 UTC by beginner_
Modified: 2012-10-05 08:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description beginner_ 2012-10-03 05:24:06 UTC
Remote repositories can not be accessed by bundled maven and the configured proxy. Proxy requires no authentication (not an issue with NTLM) and this worked fine in Netbeans 7.0.

If I configure maven to use a local CNTLM instance(which connects to the companies http proxy but not using NTLM authentication) updating the index works just fine and maven can be used.

IDE Log shows:

java.io.IOException: Transfer for nexus-maven-repository-index.properties failed; Malformed reply from SOCKS server
	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:202)
	at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:166)
	at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:459)
	at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76)
	at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:589)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:814)
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:445)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$100(NexusRepositoryIndexerImpl.java:112)
[catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:512)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:506)
	at org.openide.util.Mutex.writeAccess(Mutex.java:399)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:506)
	at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:58)
	at org.netbeans.modules.maven.repository.RepositoryNode$RefreshIndexAction$1.run(RepositoryNode.java:241)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 1 Milos Kleint 2012-10-03 06:03:36 UTC
maybe duplicate of issue 211387? 

can you check if 
1. cmd line 3.0.4 works with your maven settings?
2. in the IDE's Option dialog, set proxies to NONE. does it work then?
Comment 2 beginner_ 2012-10-05 08:32:48 UTC
Thanks. Last post in the bug you referenced is the solution:

1) Go to Tools>Options>General
2) Set Proxy settings to "Manual Proxy settings" and fill with your data.
3) Click on "More" button

In the Advanced Proxy Options
1) uncheck the "Use the same proxy settings for all protocols" check box
2) clear the "SOCKS Proxy" text field. I must be blank. The others contain the
same info as the "HTTP Proxy" text field.

*** This bug has been marked as a duplicate of bug 211387 ***