修改安装apache-maven文件夹settings.xml文件内容,添加一个http代理代码如下:
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>www.yourproxy.com</host>
<port>8080</port>
</proxy>
</proxies>
然后,重启myeclipse就可以解决问题。