我一直在使用 java 后端,它一直工作正常,直到昨天我和另一个人都开始收到此错误消息:
Could not resolve all files for configuration ':compileClasspath'. Could not resolve org.springframework:spring-beans:[2.5.2,3). Required by: project : > com.sun.jersey.contribs:jersey-spring:1.18 Failed to list versions for org.springframework:spring-beans. Unable to load Maven meta-data from http://nexus.pentaho.org/content/groups/omni/org/springframework/spring-beans/maven-metadata.xml. Could not HEAD 'http://nexus.pentaho.org/content/groups/omni/org/springframework/spring-beans/maven-metadata.xml'. Read timed out
我对 gradle 有点熟悉,但只与 android 相关,而不是与 java/spring 有关,并且以前没有遇到过此类错误。
最佳答案
当使用浏览器访问 URL 时,资源就可用了。因此,运行构建的机器和无法正常工作的存储库之间一定存在某些问题。最可能的解释是公司防火墙阻止流量。
Gradle 对此无能为力。
关于java - gradle build 突然不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49333096/