其他分享
首页 > 其他分享> > cassandra用ant编译出错

cassandra用ant编译出错

作者:互联网

Cassandra-3.11.4-main 用ant编译报错:BUILD FAILED

[1] 117196
Buildfile: /home/cjx/Downloads/cassandra-3.11.4-main/build.xml
Buildfile: /home/cjx/Downloads/cassandra-3.11.4-main/build.xml

init:
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/classes/main
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/classes/thrift
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/test/lib
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/test/classes
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/test/stress-classes
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/src/gen-java
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/jacoco
    [mkdir] Created dir: /home/cjx/Downloads/cassandra-3.11.4-main/build/jacoco/partials

maven-ant-tasks-localrepo:

maven-ant-tasks-download:

maven-ant-tasks-init:

clean:
   [delete] Deleting directory /home/cjx/Downloads/cassandra-3.11.4-main/build/test
   [delete] Deleting directory /home/cjx/Downloads/cassandra-3.11.4-main/build/classes
   [delete] Deleting directory /home/cjx/Downloads/cassandra-3.11.4-main/src/gen-java
   [delete] Deleting directory /home/cjx/Downloads/cassandra-3.11.4-main/build/jacoco

BUILD SUCCESSFUL
Total time: 1 second

maven-declare-dependencies:

maven-ant-tasks-retrieve-build:

init-dependencies:
     [echo] Loading dependency paths from file: /home/distkv/zq/apache-cassandra-3.11.4-src-master/build/build-dependencies.xml

init-dependencies:
     [echo] Loading dependency paths from file: /home/distkv/zq/apache-cassandra-3.11.4-src-master/build/build-dependencies-sources.xml

BUILD FAILED
/home/cjx/Downloads/cassandra-3.11.4-main/build.xml:699: /home/distkv/.m2/repository does not exist.

Total time: 1 second
[1]+  完成                  ant clean

打开Cassandra-3.11.4-main目录下的build.xml 将remote repository改为:

      <!-- define the remote repositories we use -->
<artifact:remoteRepository id="central" url="https://repo1.maven.org/maven2/"/>
<artifact:remoteRepository id="apache" url="${artifact.remoteRepository.apache}"/>

再用ant编译即可成功

 

标签:main,3.11,Downloads,ant,build,home,cassandra,出错
来源: https://www.cnblogs.com/yunqihao/p/16414667.html