maven-metadata.xml构建错误

时间:2016-09-04 09:45:03

标签: java spring maven build maven-metadata

每当我尝试构建Spring项目时,我都会在日志中收到错误。 有人可以帮帮我吗?

[WARNING] Could not transfer metadata org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (like--//tinkerpop.com/maven2): Access denied to link-->//tinkerpop.com/maven2/org/springframework/spring-core/3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml. Error code 403, Forbidden
[WARNING] Failure to transfer org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from link: //tinkerpop.com/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of tinkerpop-repository has elapsed or updates are forced. Original error: Could not transfer metadata org.springframework:spring-core:3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (link://tinkerpop.com/maven2): Access denied to link---//tinkerpop.com/maven2/org/springframework/spring-core/3.2.1.SPR-10124-SNAPSHOT/maven-metadata.xml. Error code 403, Forbidden

1 个答案:

答案 0 :(得分:0)

我有同样的错误。在我的情况下,我使用Netbeans 7.1.2,我发布这个是因为也许有人和我一样在这里结束。

我尝试从GUI配置代理选项,但文档说maven不会读取这些选项。所以我在这里查看了NetBeans FAQ:

您需要做的主要是在

下创建(如果它不存在)settings.xml
user.home/.m2/settings.xml

如果您没有,可以从

复制

netbeans.home / JAVA /行家/ CONF / settings.xml中 然后取消注释,如果你已经拥有它,否则只需填写此部分:

<proxies>
 <proxy>
   <active>true</active>
   <host>myproxy.host.net</host>
   <port>80</port>
 </proxy>
</proxies>

您必须检查代理配置并将其替换为