1.使用不安全协议
报错信息截取:Using insecure protocoLs with repositories, without explicit opt-in, is unsupported. Switch Maven
解决:
在 build.gradle 配置文件 新增 allowInsecureProtocol = true
repositories {
maven {
allowInsecureProtocol = true
url "http://10.19.37.78:18081/nexus/content/groups/public/"}
}
2.找不到名为“runtime”的启动配置
大概率是gradle版本问题,本来使用7.6版本的gradle,降版本4.9配置依赖生效
参考文章:java组织。springframework。找不到名为“runtime”的启动配置 - Java中文网
二楼的解答!
3.set unkonwn property “allowInsecureProtocol”
在 build.gradle 配置文件 去除 allowInsecureProtocol = true