0

我已将 cassandra-all 包含在我的 gradle 依赖项列表中。就这个:

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。有没有其他人面临同样的问题?请建议如何前进。

4

1 回答 1

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

那里也提到了解决方案。

于 2014-05-15T05:25:36.347 回答