【发布时间】:2020-07-17 13:47:49
【问题描述】:
当 gradle 尝试通过 Gradle Central Plugin Repository 下载 org.springframework.boot', version: '2.1.9.RELEASE' 时做不到
FAILURE: Build failed with an exception.
* Where:
Build file '/usr/src/app/build.gradle' line: 2
* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.1.9.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.1.9.RELEASE')
Searched in the following repositories:
Gradle Central Plugin Repository
但是使用wget的时候可以拉出来
$ wget https://plugins.gradle.org/m2/org/springframework/boot/org.springframework.boot.gradle.plugin/2.1.9.RELEASE/org.springframework.boot.gradle.plugin-2.1.9.RELEASE.pom
--2020-07-17 13:38:07-- https://plugins.gradle.org/m2/org/springframework/boot/org.springframework.boot.gradle.plugin/2.1.9.RELEASE/org.springframework.boot.gradle.plugin-2.1.9.RELEASE.pom
Resolving plugins.gradle.org (plugins.gradle.org)... 104.18.190.9, 104.18.191.9, 2606:4700::6812:bf09, ...
Connecting to plugins.gradle.org (plugins.gradle.org)|104.18.190.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
我也尝试使用我们的 nexus 代理,但没有帮助
pluginManagement {
repositories {
maven { url 'https://${NEXUS_LINK}/repository/GradlePluginPortal/' }
mavenLocal()
}
}
【问题讨论】:
标签: spring spring-boot gradle