Thursday, June 17, 2010

[WARNING] Unable to get resource 'org.someorg.project:project-proto:pom:some-version' from repository project-repo (http://repository.somecompany.com/

Do not worry, you are probably just behind a proxy. Try putting a file named "~/.m2/settings.xml " in your home directory's maven directory, or wherever your .m2 directory is:

Make the contents of the file something like this:
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
Replacing all of the relevant bits and removing any unnecessary lines, like username and password, if they are not needed.

Hope that helps.

No comments: