2013-05-28 109 views
0

我正在嘗試使用Cassandra Java驅動程序。 使用Maven構建時出現以下錯誤。apache cassandra maven的Java驅動程序無法構建

在這條線找到多個註釋:

- ArtifactTransferException: Failure to transfer org.apache.cassandra:cassandra-thrift:jar:1.2.3 from repo.maven.apache.org/maven2 was 
      cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could 
      not transfer artifact org.apache.cassandra:cassandra-thrift:jar:1.2.3 from/to central (h://repo.maven.apache.org/maven2): No response received after 
      60000 
      - ArtifactTransferException: Failure to transfer com.github.stephenc.high-scale-lib:high-scale-lib:jar:1.1.2 from h://repo.maven.apache.org/ 
      maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original 
      error: Could not transfer artifact com.github.stephenc.high-scale-lib:high-scale-lib:jar:1.1.2 from/to central (h://repo.maven.apache.org/maven2): No 
      response received after 60000 
      - ArtifactTransferException: Failure to transfer org.mortbay.jetty:jetty:jar:6.1.22 from h://repo.maven.apache.org/maven2 was cached in the 
      local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer 
      artifact org.mortbay.jetty:jetty:jar:6.1.22 from/to central (h://repo.maven.apache.org/maven2): No response received after 60000 
      - ArtifactTransferException: Failure to transfer io.netty:netty:jar:3.6.3.Final from h://repo.maven.apache.org/maven2 was cached in the local 
      repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact 
      io.netty:netty:jar:3.6.3.Final from/to central (h://repo.maven.apache.org/maven2): No response received after 60000 
      - ArtifactTransferException: Failure to transfer org.apache.cassandra:cassandra-all:jar:1.2.3 from h://repo.maven.apache.org/maven2 was 
      cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could 
      not transfer artifact org.apache.cassandra:cassandra-all:jar:1.2.3 from/to central (h://repo.maven.apache.org/maven2): No response received after 60000 

任何人都可以提出,什麼是需要在pom.xml中添加。

<dependencies> 
    <dependency> 
     <groupId>com.datastax.cassandra</groupId> 
     <artifactId>cassandra-driver-core</artifactId> 
     <version>1.0.0-beta2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.mortbay.jetty</groupId> 
     <artifactId>jetty-util</artifactId> 
     <version>6.1H.5-beta</version> 
    </dependency>    
    </dependencies> 
</project> 

回答

1

我有類似的錯誤:

ArtifactTransferException:故障轉移共享記錄:共享記錄中:jar:1.1.1從http://repo.maven.apache.org/maven2在本地倉庫被緩存,分辨率將不會被重新嘗試,直到中央的更新間隔已過或強制更新。原 錯誤:從/ 1.1.1到中央(http://repo.maven.apache.org/maven2):無法傳輸神器共享記錄:共享記錄:罐子沒有收到響應後60000

我解決了這個問題通過執行以下步驟:

1.右鍵

單擊該項目

2.Goto Maven的

3.Click 「更新工程」

這解決了我的問題。希望它能幫助你。

相關問題