我正在尝试配置maven我收到以下错误
https\://maven.java.net/content/groups/public/.error=Could not transfer artifact org.primefaces\:primefaces\:pom\:3.1 from/to maven2-repository.dev.java.net (https\://maven.java.net/content/groups/public)\: connection timed out
我在D:\ apache-maven-3.0.4 \ apache-maven-3.0.4 \ conf \ settings.xml
中添加了代理设置<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>myid</username>
<password>mypassword</password>
<host>proxyaddress</host>
<port>80</port>
<nonProxyHosts>www.google.com</nonProxyHosts>
</proxy>
-->
</proxies>
即使在设置中添加代理,为什么我的连接超时错误?
任何帮助都非常值得赞赏
由于
答案 0 :(得分:0)
我解决了这个问题,非常愚蠢。我在-->
</proxy>.