[英]ERROR creating Maven project in Eclipse due to Proxy/Intranet restriction
有没有人在您在内联网连接环境中工作之前遇到过这种情况,在这种环境中某些站点受到限制。 在Eclipse中,我在哪里添加代理设置?
这里?
还是在这? http://maven.apache.org/xsd/settings-1.0.0.xsd“>
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system property or command-line switch), the first proxy
| specification in this list marked as active will be used.
|-->
<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>
-->
</proxies>
我不能使用pom.xml来下载maven依赖项,因为Eclipse / Maven似乎无法下载我怀疑是由于Intranet代理设置所需的必要文件。
是的,在settings.xml中添加就行了。 恩。 $ {}的user.home /。平方米/ settings.xml中
<settings>
<proxies>
<proxy>
<id>web-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>local.net</host>
<port>8080</port>
</proxy>
</proxies>
</settings>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.