Intellij Community can't use http proxy for Maven
Posted
by MikeHoss
on Stack Overflow
See other posts from Stack Overflow
or by MikeHoss
Published on 2009-11-23T16:07:36Z
Indexed on
2010/03/15
21:09 UTC
Read the original article
Hit count: 784
I have Intellij IDEA Community installed on a Linux box that needs to use an authenticated proxy to get to the Internet. I have a system-wide proxy on the box that works, and I have the proxy configured in ~/.m2/settings.xml. Maven correctly uses the proxy when I run try it from the command-line.
I have the same proxy configured within Intellij and it gives me the plugins listing correctly. But when I try to sync with the Maven repository withing Intellij I keep getting this:
[WARNING] Unable to get resource 'org.codehaus.mojo:hibernate3-maven-plugin:pom:2.2'
from repository restlet (http://maven.restlet.org): Authorization failed: Not
authorized by proxy.
I went to Settings->Maven and put in the proxy info as properties and that didn't work. I can see by looking at those settings that Intellij is reading my ~./m2/settings.xml fine because it knows where my local repo is (it's in a non-standard place).
Anyone know how I can get this working?
© Stack Overflow or respective owner