1

每当我尝试构建我的 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
4

1 回答 1

0

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

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

你要做的主要是在下创建(如果不存在)一个settings.xml

user.home/.m2/settings.xml

如果你没有它,你可以从

netbeans.home/java/maven/conf/settings.xml 然后取消注释,如果你已经拥有它,否则只需填写此部分:

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

你必须检查你的代理配置并在那里替换它

于 2016-09-04T09:53:51.217 回答