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。

將這個點掉就可以了。就可以執行maven配置了

repositories {
    mavenLocal()
    maven { url 'http:。。。' }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章