SpringBoot项目无法Gradle,报 Could not resolve:XXXX

无法Gradle,错误日志是:

CONFIGURE SUCCESSFUL in 0s
Could not resolve: org.springframework:spring-jdbc:5.0.6.RELEASE
Could not resolve: org.apache.httpcomponents:httpclient:4.3.4
Could not resolve: com.alibaba:fastjson:1.2.24
Could not resolve: com.saicfc.efs:EFSCommon:0.3.8
Could not resolve: org.eclipse.jetty:jetty-server:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-util:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-http:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-io:9.4.9.v20180320
Could not resolve: com.github.ulisesbocchio:jasypt-spring-boot-starter:2.1.1
Could not resolve: com.saicfc.esb.hessian:bswinvoke:0.0.1
Could not resolve: org.apache.commons:commons-lang3:3.6

检查Gradle版本,.没有问题,原因是在Gradle设置里面点了Offline work,所以无法下载maven配置信息,导致无法构建,Could not resolve。

SpringBoot项目无法Gradle,报 Could not resolve:XXXX_第1张图片

将这个点掉就可以了。就可以执行maven配置了

repositories {
    mavenLocal()
    maven { url 'http:。。。' }
}

你可能感兴趣的:(Gradle,maven,java,web项目)