我在我的gradle依赖列表中包含了cassandra-all。这是它:
compile 'org.apache.cassandra:cassandra-all:2.1.0-beta2'
但是当我尝试构建时,它失败并出现以下异常:
> Could not find ch.qos.logback:logback-classic:1.1.12.
Required by:
MAPro_Transactor:mapro-commons:1.0
MAPro_Transactor:mapro-commons:1.0 > com.adaequare.mapro.model:mapro-model:2.0-SNAPSHOT
> Could not find io.netty:netty:4.0.17.Final.
Required by:
MAPro_Transactor:mapro-commons:1.0 > com.datastax.cassandra:cassandra-driver-core:2.0.1
> Could not find ch.qos.logback:logback-core:1.1.12.
Required by:
MAPro_Transactor:mapro-commons:1.0 > org.apache.cassandra:cassandra-all:2.1.0-beta2
> Could not find ch.qos.logback:logback-classic:1.1.12.
Required by:
MAPro_Transactor:mapro-commons:1.0 > org.apache.cassandra:cassandra-all:2.1.0-beta2
> Could not find com.github.stephenc:jamm:0.2.6.
Required by:
MAPro_Transactor:mapro-commons:1.0 > org.apache.cassandra:cassandra-all:2.1.0-beta2
> Could not find io.netty:netty:4.0.17.Final.
Required by:
MAPro_Transactor:mapro-commons:1.0 > org.apache.cassandra:cassandra-all:2.1.0-beta2
我发现依赖关系并不真正存在于Maven资源库中。以为我会去网站,手动下载jar并将其放入maven本地存储库。但我找不到com.github.stephenc:jamm:0.2.6 jar。还有其他人面临同样的问题吗?请建议如何前进。
答案 0 :(得分:0)
Maven存储库工件已损坏。我被要求使用以下链接下载快照:
https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=shortlog;h=refs/heads/cassandra-2.1
以下是Cassandra JIRA中提出的错误:CASSANDRA-7218
那里也提到了解决方案。