storm-starter 中的错误:无法在 clojars 中找到工件 0.10.0-SNAPSHOT
Error in storm-starter: Could not find artifact 0.10.0-SNAPSHOT in clojars
我从 https://github.com/apache/storm/tree/master/examples/storm-starter 克隆了 storm-starter,然后使用 "mvn clean install -DskipTests=true"
在本地构建我的 jar
这是我得到的错误:
[ERROR] Failed to execute goal on project storm-starter: Could not resolve depen
dencies for project org.apache.storm:storm-starter:jar:0.10.0-SNAPSHOT: Could no
t find artifact org.apache.storm:storm-core:jar:0.10.0-SNAPSHOT in clojars (http
s://clojars.org/repo/) -> [Help 1]
也许我看错了位置,但我没有在 https://clojars.org/repo/org/apache/
中看到 "storm"
我怎样才能使这个工作?
你正在尝试构建 storm-starter 的开发分支,它是针对 Storm 当前的开发分支 (0.10.0-SNAPSHOT) 构建的,因此你必须自己构建 storm:
If you are using the latest development version of Storm, e.g. by having cloned the Storm git repository, then you must first perform a local build of Storm itself. Otherwise you will run into Maven errors such as "Could not resolve dependencies for project org.apache.storm:storm-starter:-SNAPSHOT".
尝试v0.9.3 instead, which is build against the latest stable Storm, and as such has it's dependencies hosted in Maven Central。
进入Storm代码库顶层目录
$ mvn clean install -DskipTests=true
此命令将在本地构建 Storm 并将其 jar 文件安装到用户的 $HOME/.m2/repository/。当您 运行 要构建的 Maven 命令和 运行 storm-starter(见下文)时,Maven 将能够在 $HOME/ 的本地 Maven 存储库中找到相应版本的 Storm。m2/repository.
https://github.com/apache/storm/tree/master/examples/storm-starter#getting-started
我从 https://github.com/apache/storm/tree/master/examples/storm-starter 克隆了 storm-starter,然后使用 "mvn clean install -DskipTests=true"
在本地构建我的 jar这是我得到的错误:
[ERROR] Failed to execute goal on project storm-starter: Could not resolve depen
dencies for project org.apache.storm:storm-starter:jar:0.10.0-SNAPSHOT: Could no
t find artifact org.apache.storm:storm-core:jar:0.10.0-SNAPSHOT in clojars (http
s://clojars.org/repo/) -> [Help 1]
也许我看错了位置,但我没有在 https://clojars.org/repo/org/apache/
中看到 "storm"我怎样才能使这个工作?
你正在尝试构建 storm-starter 的开发分支,它是针对 Storm 当前的开发分支 (0.10.0-SNAPSHOT) 构建的,因此你必须自己构建 storm:
If you are using the latest development version of Storm, e.g. by having cloned the Storm git repository, then you must first perform a local build of Storm itself. Otherwise you will run into Maven errors such as "Could not resolve dependencies for project org.apache.storm:storm-starter:-SNAPSHOT".
尝试v0.9.3 instead, which is build against the latest stable Storm, and as such has it's dependencies hosted in Maven Central。
进入Storm代码库顶层目录
$ mvn clean install -DskipTests=true
此命令将在本地构建 Storm 并将其 jar 文件安装到用户的 $HOME/.m2/repository/。当您 运行 要构建的 Maven 命令和 运行 storm-starter(见下文)时,Maven 将能够在 $HOME/ 的本地 Maven 存储库中找到相应版本的 Storm。m2/repository.
https://github.com/apache/storm/tree/master/examples/storm-starter#getting-started