Maven构建错误 - Storm-Starter项目

时间:2018-04-25 12:22:38

标签: maven apache-storm

当我尝试构建风暴启动项目时,我遇到了构建错误。我没有任何关于出了什么问题的线索。任何帮助表示赞赏。错误粘贴在下面,

[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ storm-starter ---
Downloading: http://repository.apache.org/snapshots/org/apache/storm/storm-checkstyle/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading: http://repository.apache.org/snapshots/org/apache/storm/storm-checkstyle/2.0.0-SNAPSHOT/storm-checkstyle-2.0.0-SNAPSHOT.pom
[WARNING] The POM for org.apache.storm:storm-checkstyle:jar:2.0.0-SNAPSHOT is missing, no dependency information available
Downloading: http://repository.apache.org/snapshots/org/apache/storm/storm-checkstyle/2.0.0-SNAPSHOT/storm-checkstyle-2.0.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.179 s
[INFO] Finished at: 2018-04-25T17:42:45+05:30
[INFO] Final Memory: 25M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on project storm-starter: Execution validate of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.17 or one of its dependencies could not be resolved: Could not find artifact org.apache.storm:storm-checkstyle:jar:2.0.0-SNAPSHOT in apache.snapshots

我可以理解,缺少特定的依赖,storm-checkstyle:jar,但无法解决它。如果需要启用调试的跟踪,请更新。

1 个答案:

答案 0 :(得分:1)

storm-checkstyle在这里https://github.com/apache/storm/tree/master/storm-checkstyle。它应该在你克隆Storm的目录中。我猜你忘了做一个完整的版本,所以你没有本地的所有Storm jar。请参阅https://github.com/apache/storm/tree/master/examples/storm-starter#build-and-install-storm-jars-locally