强制行家更新

僤鯓⒐⒋嵵緔 提交于 2020-08-11 02:52:34

问题:

I imported my working project on other computer so it started to download dependencies. 我将工作项目导入其他计算机,因此它开始下载依赖项。

Apparently in the meantime my internet connection crashed. 显然与此同时,我的互联网连接崩溃了。 Now I get: 现在我得到:

Build errors for comics; 建立漫画错误; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project comicsTest: Could not resolve dependencies for project comicsTest:comicsTest:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-context:jar:3.0.5.RELEASE, org.hibernate:hibernate-entitymanager:jar:3.6.0.Final, org.hibernate:hibernate-core:jar:3.6.0.Final, org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final, org.aspectj:aspectjweaver:jar:1.6.8, commons-lang:commons-lang:jar:2.5, org.apache.maven.lifecycle.LifecycleExecutionException:无法在项目comics上执行目标Test:无法解决项目comics的依赖项Test:comicsTest:war:0.0.1-SNAPSHOT:无法解决以下工件:org.springframework:spring- context:jar:3.0.5.RELEASE,org.hibernate:hibernate-entitymanager:jar:3.6.0.Final,org.hibernate:hibernate-core:jar:3.6.0.Final,org.hibernate:hibernate-commons-批注:jar:3.2.0.Final,org.aspectj:aspectjweaver:jar:1.6.8,commons-lang:commons-lang:jar:2.5,

mysql:mysql-connector-java:jar:5.1.13: Failure to transfer org.springframework:spring-context:jar:3.0.5.RELEASE from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. mysql:mysql-connector-java:jar:5.1.13:无法从本地存储库中缓存来自http://repo1.maven.org/maven2的 org.springframework:spring-context:jar:3.0.5.RELEASE传输,直到Central的更新间隔或强制进行更新后,才会重新尝试解析。

Original error: Could not transfer artifact org.springframework:spring-context:jar:3.0.5.RELEASE from central ( http://repo1.maven.org/maven2 ): No response received after 60000 原始错误:无法从中央( http://repo1.maven.org/maven2 )传输工件org.springframework:spring-context:jar:3.0.5.RELEASE:60000之后未收到响应

And I have no idea how to force maven to update? 而且我不知道如何强制Maven更新?


解决方案:

参考一: https://stackoom.com/question/Jj5A/强制行家更新
参考二: https://oldbug.net/q/Jj5A/Force-maven-update
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!