5 Feb 2013

ConnectException: UnresolvedAddressException

Problem: Plugin {plugin name} or one of its dependencies could not be resolved: ConnectException: UnresolvedAddressException
[INFO] ----------------------------------------------------------- [INFO] Building Hello Maven Webapp 1.0-SNAPSHOT [INFO] ----------------------------------------------------------- Downloading: http://repo1.maven.org/maven2/org/jibx/maven-jibx-plugin/1.2.1/maven-jibx-plugin-1.2.1.pom [INFO] -------------------------------------------------------- [INFO] BUILD FAILURE [INFO] ----------------------------------------------------------- [INFO] Total time: 2.656s [INFO] Finished at: Tue Feb 05 11:22:30 CST 2013 [INFO] Final Memory: 5M/9M [INFO] ----------------------------------------------------------- [ERROR] Plugin org.jibx:maven-jibx-plugin:1.2.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.jibx:maven-jibx-plugin:jar:1.2.1: Could not transfer artifact org.jibx:maven-jibx-plugin:pom:1.2.1 from/to central (http://repo1.maven.org/maven2): ConnectException: UnresolvedAddressException -> [Help 1]
Cause: There may be a proxy server or a firewall that restricts which websites one can connect to.
Solution: Configure a proxy to use for some or all of your HTTP requests (available in Maven 2.0) in the settings.xml file.
There are two locations where a settings.xml file may live:
  • The Maven install: $M2_HOME/conf/settings.xml
  • A user's install: ${user.home}/.m2/settings.xml
settings.xml
<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 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <servers/> <mirrors/> <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</nonProxyHosts> </proxy> </proxies> <profiles/> <activeProfiles/> </settings/&gt

No comments: