roh*_*ani 6 gradle spring-boot
我刚刚从http://start.spring.io/下载了 springboot 项目。运行后我得到这个错误。
* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.2.4.RELEASE'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.2.4.RELEASE')
Searched in the following repositories:
Gradle Central Plugin Repository
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Run Code Online (Sandbox Code Playgroud)
任何人都可以请建议根本原因是什么。
Vas*_*ian 21
接受的答案对我不起作用。在项目根目录中添加settings.gradle文件后,我可以解决此问题,
设置.gradle:
pluginManagement {
repositories {
maven { url "<Repo_URL>" }
}
}
Run Code Online (Sandbox Code Playgroud)
小智 6
就我而言,我已经在 gradle.properties 文件中配置了我的工作代理,但我没有通过他们的 VPN。
如果您也是这种情况,您可以只注释该文件中的行,或者如果可能的话直接连接到 VPN。
归档时间: |
|
查看次数: |
17430 次 |
最近记录: |