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" }
}

即可
storm-core使用gradle打包找不到 ring-cores问题Could not find ring-cors:ring-cors:0.1.5._第1张图片

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

<repositories>
    <repository>
        <releases>
            <enabled>trueenabled>
        releases>
        <snapshots>
            <enabled>trueenabled>
        snapshots>
        <id>clojarsid>
        <url>https://clojars.org/repo/url>
    repository>
repositories>

你可能感兴趣的:(Storm)