storm-core使用gradle打包找不到 ring-cores问题Could not find ring-cors:ring-cors:0.1.5.
Posted 王小雷-多面手
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了storm-core使用gradle打包找不到 ring-cores问题Could not find ring-cors:ring-cors:0.1.5.相关的知识,希望对你有一定的参考价值。
问题storm-core使用gradle打包找不到ring-cors:ring-cors:0.1.5.
FAILURE: Build failed with an exception.
What went wrong:
Could not resolve all files for configuration ‘:compileClasspath’.Could not find ring-cors:ring-cors:0.1.5.
Searched in the following locations:- https://repo.maven.apache.org/maven2/ring-cors/ring-cors/0.1.5/ring-cors-0.1.5.pom
- https://repo.maven.apache.org/maven2/ring-cors/ring-cors/0.1.5/ring-cors-0.1.5.jar
Required by:
project :
project : > org.apache.storm:storm-core:1.2.0
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.Get more help at https://help.gradle.org
BUILD FAILED in 1m 59s
1 actionable task: 1 executed
1.gralde 解决办法
在gradle配置文件中。gradle.build增加
repositories
mavenCentral()
maven url "https://clojars.org/repo"
即可
2.另外如果是Maven的话,附上Maven解决方法(storm-core官方源码是Maven所以这个看官方的就可以)
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>clojars</id>
<url>https://clojars.org/repo/</url>
</repository>
</repositories>
以上是关于storm-core使用gradle打包找不到 ring-cores问题Could not find ring-cors:ring-cors:0.1.5.的主要内容,如果未能解决你的问题,请参考以下文章
AS 3.1 多library合并打包成aar的正确方式(fat-aar)
Walle(瓦力)多渠道打包-gradle脚本-可360加固一键打包