storm-core使用gradle打包找不到 ring-cores问题Could not find ring-cors:ring-cors:0.1.5.

2022-05-07 08:53:49 浏览数 (1)

问题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增加

代码语言:javascript复制
repositories {
    mavenCentral()
    maven { url "https://clojars.org/repo" }
}

即可

2.另外如果是Maven的话,附上Maven解决方法(storm-core官方源码是Maven所以这个看官方的就可以)

代码语言:javascript复制
<repositories>
    <repository>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <id>clojars</id>
        <url>https://clojars.org/repo/</url>
    </repository>
</repositories>

0 人点赞