apache cassandra maven的java驱动程序无法构建

b5buobof  于 2021-06-15  发布在  Cassandra
关注(0)|答案(1)|浏览(430)

我正在尝试使用cassandrajava驱动程序。我在使用maven构建时遇到了以下错误。
在此行找到多个注解:

- 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>
ecfdbz9o

ecfdbz9o1#

我也有类似的错误:
artifacttransferexception:无法传输公共资源-logging:commons-logging:jar:1.1.1 from http://repo.maven.apache.org/maven2 已缓存在本地存储库中,在经过central的更新间隔或强制更新之前,不会重新尝试解析。原始错误:无法传输公共项目-logging:commons-logging:jar:1.1.1 from/to 中央(http://repo.maven.apache.org/maven2):60000后未收到响应
我通过以下步骤解决了这个问题:
1.右键单击项目
2.转到maven
3.点击“更新项目”
这解决了我的问题。希望对你有帮助。

相关问题