Idea编译springboot奇怪的问题

Idea编译springboot奇怪的问题

Plugin [id: 'org.springframework.boot', version: '2.1.6.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.6.RELEASE')

这个问题很奇怪,看不出问题。
后面通过:

# 注意这里增加了-d参数,可以打印更加详细的信息
gradle -d build

从错误消息中,我终于看到了希望……竟然是访问了代理,我曾经配置过代理,现在就算再idea着配置中不使用代理,也不能起作用。

经过参考gradle配置代理的资料,发现,我在~/.gradle/gradle.properties文件中发现了如下配置:

# Tue May 22 23:27:31 CST 2018
systemProp.https.proxyPort=49351
systemProp.http.proxyHost=127.0.0.1
systemProp.https.proxyHost=127.0.0.1
systemProp.http.proxyPort=49351

原来gradle无法获取资料的原因在这里!
注释掉,还是不行!哦,gradle是通过代理,马上吧gradle的daemon进程逐一杀掉,在开始编译,终于开始下载了,发现原来出问题的idea也开始正常工作了。

希望对您有用!

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值