Драйвер Java для apache cassandra maven не удается собрать

Я пытаюсь использовать драйвер Cassandra Java. Я получаю ошибку ниже при использовании сборки 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>

person animesh    schedule 28.05.2013    source источник


Ответы (1)


У меня аналогичная ошибка:

ArtifactTransferException: не удалось перенести commons-logging:commons-logging:jar:1.1.1 из http://repo.maven.apache.org/maven2 был закэширован в локальном репозитории, повторная попытка разрешения не будет предприниматься до тех пор, пока не истечет интервал обновления хранилища или не будут принудительно обновлены. Исходная ошибка: не удалось передать артефакт commons-logging:commons-logging:jar:1.1.1 из/в центральный сервер (http://repo.maven.apache.org/maven2): ответ не получен после 60000

Я решил проблему, выполнив следующие шаги:

1. Щелкните правой кнопкой мыши проект

2. Гото Мейвен

3.Нажмите «Обновить проект».

Это решило мою проблему. Надеюсь, это поможет вам.

person Ramsharan    schedule 02.07.2013