Let's clone the cassandra repository using git. Wait a while on my slow line at 436KBps with 136MB.
user@localhost:~/$ git clone http://git-wip-us.apache.org/repos/asf/cassandra.git cassandra-trunk
Cloning into 'cassandra-trunk'...
remote: Counting objects: 273406, done.
remote: Compressing objects: 100% (45601/45601), done.
remote: Total 273406 (delta 164011), reused 269444 (delta 161446)
Receiving objects: 100% (273406/273406), 136.60 MiB | 436.00 KiB/s, done.
Resolving deltas: 100% (164011/164011), done.
Checking connectivity... done.
Once repository was cloned, let's check out the directory.
user@localhost:~/$ cd cassandra-trunk/
user@localhost:~/cassandra-trunk$ ls
total 596K
-rw-r--r-- 1 user user 3.5K Sep 6 21:28 README.asc
-rw-r--r-- 1 user user 2.8K Sep 6 21:28 NOTICE.txt
-rw-r--r-- 1 user user 99K Sep 6 21:28 NEWS.txt
-rw-r--r-- 1 user user 12K Sep 6 21:28 LICENSE.txt
-rw-r--r-- 1 user user 1.3K Sep 6 21:28 CONTRIBUTING.md
-rw-r--r-- 1 user user 320K Sep 6 21:28 CHANGES.txt
drwxr-xr-x 3 user user 4.0K Sep 6 21:28 conf
-rw-r--r-- 1 user user 91K Sep 6 21:28 build.xml
-rw-r--r-- 1 user user 516 Sep 6 21:28 build.properties.default
drwxr-xr-x 2 user user 4.0K Sep 6 21:28 bin
drwxr-xr-x 4 user user 4.0K Sep 6 21:28 doc
drwxr-xr-x 3 user user 4.0K Sep 6 21:28 debian
drwxr-xr-x 3 user user 4.0K Sep 6 21:28 interface
drwxr-xr-x 3 user user 4.0K Sep 6 21:28 ide
drwxr-xr-x 4 user user 4.0K Sep 6 21:28 examples
-rw-r--r-- 1 user user 5.8K Sep 6 21:28 eclipse_compiler.properties
drwxr-xr-x 3 user user 4.0K Sep 6 21:28 pylib
drwxr-xr-x 5 user user 4.0K Sep 6 21:28 lib
drwxr-xr-x 6 user user 4.0K Sep 6 21:28 src
drwxr-xr-x 9 user user 4.0K Sep 6 21:28 test
drwxr-xr-x 4 user user 4.0K Sep 6 21:28 tools
user@localhost:~/cassandra-trunk$ git branch
* trunk
user@localhost:~/cassandra-trunk$ git branch -a
* trunk
remotes/origin/HEAD -> origin/trunk
remotes/origin/cassandra-1.0
remotes/origin/cassandra-1.1
remotes/origin/cassandra-1.2
remotes/origin/cassandra-2.0
remotes/origin/cassandra-2.1
remotes/origin/cassandra-2.2
remotes/origin/cassandra-3.0
remotes/origin/cassandra-3.9
remotes/origin/trunk
okay, looks almost the same sets of files when you downloaded the binary tarball package except this is much more. But that is expected because we are in development environment. As of this moment, we have cassandra up to version 3.9
Before we go further, let's checkout the package required by cassandra.
user@localhost:~/cassandra-trunk$ ant -version
Apache Ant(TM) version 1.9.7 compiled on May 16 2016
user@localhost:~/cassandra-trunk$ export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_45/
So I'm using trunk cassandra , ant version 1.9.7 and oracle jdk version8 update 45. Eclipse I'm a bit behind, I'm still sticking with eclipse luna, I should upgrade to eclipse neon soon!
Okay, our tools are all checked at this point, let's start ant build.
user@localhost:~/cassandra-trunk$ ant
Buildfile: /home/user/cassandra-trunk/build.xml
init:
[mkdir] Created dir: /home/user/cassandra-trunk/build/classes/main
[mkdir] Created dir: /home/user/cassandra-trunk/build/classes/thrift
[mkdir] Created dir: /home/user/cassandra-trunk/build/test/lib
[mkdir] Created dir: /home/user/cassandra-trunk/build/test/classes
[mkdir] Created dir: /home/user/cassandra-trunk/build/test/stress-classes
[mkdir] Created dir: /home/user/cassandra-trunk/src/gen-java
[mkdir] Created dir: /home/user/cassandra-trunk/build/lib
[mkdir] Created dir: /home/user/cassandra-trunk/build/jacoco
[mkdir] Created dir: /home/user/cassandra-trunk/build/jacoco/partials
maven-ant-tasks-localrepo:
maven-ant-tasks-download:
[echo] Downloading Maven ANT Tasks...
[get] Getting: http://repo2.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
[get] To: /home/user/cassandra-trunk/build/maven-ant-tasks-2.1.3.jar
[copy] Copying 1 file to /home/user/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3
maven-ant-tasks-init:
maven-declare-dependencies:
maven-ant-tasks-retrieve-build:
[artifact:dependencies] Downloading: com/datastax/cassandra/cassandra-driver-core/3.0.1/cassandra-driver-core-3.0.1.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 15K from central
[artifact:dependencies] Downloading: com/datastax/cassandra/cassandra-driver-parent/3.0.1/cassandra-driver-parent-3.0.1.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 18K from central
[artifact:dependencies] Downloading: io/dropwizard/metrics/metrics-core/3.1.2/metrics-core-3.1.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1K from central
[artifact:dependencies] Downloading: io/dropwizard/metrics/metrics-parent/3.1.2/metrics-parent-3.1.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 12K from central
[artifact:dependencies] Downloading: org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 3K from central
[artifact:dependencies] Downloading: org/slf4j/slf4j-parent/1.7.7/slf4j-parent-1.7.7.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 12K from central
[artifact:dependencies] Downloading: org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-core/0.4.4/ohc-core-0.4.4.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 11K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-parent/0.4.4/ohc-parent-0.4.4.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 16K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-core-j8/0.4.4/ohc-core-j8-0.4.4.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 5K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-core/1.13/jmh-core-1.13.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 10K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-parent/1.13/jmh-parent-1.13.pom from repository java.net at http://download.java.net/maven/2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.openjdk.jmh:jmh-parent:pom:1.13' in repository java.net (http://download.java.net/maven/2)
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-parent/1.13/jmh-parent-1.13.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 6K from central
[artifact:dependencies] Downloading: net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 11K from central
[artifact:dependencies] Downloading: org/apache/commons/commons-math3/3.2/commons-math3-3.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 17K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-generator-annprocess/1.13/jmh-generator-annprocess-1.13.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 4K from central
[artifact:dependencies] Downloading: net/ju-n/compile-command-annotations/compile-command-annotations/1.2.0/compile-command-annotations-1.2.0.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 5K from central
[artifact:dependencies] Downloading: net/ju-n/net-ju-n-parent/32/net-ju-n-parent-32.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 21K from central
[artifact:dependencies] Downloading: org/apache/ant/ant-junit/1.9.4/ant-junit-1.9.4.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 4K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-core/0.4.4/ohc-core-0.4.4.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: org/apache/ant/ant-junit/1.9.4/ant-junit-1.9.4.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: org/apache/commons/commons-math3/3.2/commons-math3-3.2.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: io/dropwizard/metrics/metrics-core/3.1.2/metrics-core-3.1.2.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: net/ju-n/compile-command-annotations/compile-command-annotations/1.2.0/compile-command-annotations-1.2.0.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 132K from central
[artifact:dependencies] Transferring 16K from central
[artifact:dependencies] Transferring 110K from central
[artifact:dependencies] Transferring 1653K from central
[artifact:dependencies] Downloading: org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2256K from central
[artifact:dependencies] Downloading: net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 115K from central
[artifact:dependencies] Downloading: com/datastax/cassandra/cassandra-driver-core/3.0.1/cassandra-driver-core-3.0.1-shaded.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 61K from central
[artifact:dependencies] Transferring 2388K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-core/1.13/jmh-core-1.13.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 454K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-core-j8/0.4.4/ohc-core-j8-0.4.4.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 5K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-generator-annprocess/1.13/jmh-generator-annprocess-1.13.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 30K from central
^Y[artifact:dependencies] Building ant file: /home/user/cassandra-trunk/build/build-dependencies.xml
[artifact:dependencies] Downloading: io/netty/netty-all/4.0.39.Final/netty-all-4.0.39.Final.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 17K from central
[artifact:dependencies] Downloading: io/netty/netty-parent/4.0.39.Final/netty-parent-4.0.39.Final.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 44K from central
[artifact:dependencies] Downloading: io/netty/netty-all/4.0.39.Final/netty-all-4.0.39.Final.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2218K from central
[artifact:dependencies] Downloading: com/datastax/cassandra/cassandra-driver-core/3.0.1/cassandra-driver-core-3.0.1-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 552K from central
[artifact:dependencies] Downloading: io/dropwizard/metrics/metrics-core/3.1.2/metrics-core-3.1.2-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 52K from central
[artifact:dependencies] Downloading: org/slf4j/slf4j-api/1.7.12/slf4j-api-1.7.12-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 50K from central
[artifact:dependencies] Downloading: io/netty/netty-all/4.0.39.Final/netty-all-4.0.39.Final-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1749K from central
[artifact:dependencies] Downloading: org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1724K from central
[artifact:dependencies] Downloading: org/caffinitas/ohc/ohc-core/0.4.4/ohc-core-0.4.4-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 83K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-core/1.13/jmh-core-1.13-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 357K from central
[artifact:dependencies] Downloading: net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 73K from central
[artifact:dependencies] Downloading: org/apache/commons/commons-math3/3.2/commons-math3-3.2-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1958K from central
[artifact:dependencies] Downloading: org/openjdk/jmh/jmh-generator-annprocess/1.13/jmh-generator-annprocess-1.13-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 26K from central
[artifact:dependencies] Downloading: net/ju-n/compile-command-annotations/compile-command-annotations/1.2.0/compile-command-annotations-1.2.0-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 15K from central
[artifact:dependencies] Downloading: org/apache/ant/ant-junit/1.9.4/ant-junit-1.9.4-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 92K from central
[artifact:dependencies] Downloading: org/apache/ant/ant/1.9.4/ant-1.9.4-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1889K from central
[artifact:dependencies] Downloading: org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4-sources.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 19K from central
[artifact:dependencies] Building ant file: /home/user/cassandra-trunk/build/build-dependencies-sources.xml
[copy] Copying 62 files to /home/user/cassandra-trunk/build/lib/jars
[copy] Copying 17 files to /home/user/cassandra-trunk/build/lib/sources
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 3K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.build/0.7.5.201505241946/org.jacoco.build-0.7.5.201505241946.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 36K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.ant/0.7.5.201505241946/org.jacoco.ant-0.7.5.201505241946.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.core/0.7.5.201505241946/org.jacoco.core-0.7.5.201505241946.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1K from central
[artifact:dependencies] Downloading: org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/ow2/asm/asm-parent/5.0.1/asm-parent-5.0.1.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 5K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.report/0.7.5.201505241946/org.jacoco.report-0.7.5.201505241946.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman/3.0.3/byteman-3.0.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 91K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-root/3.0.3/byteman-root-3.0.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 18K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-submit/3.0.3/byteman-submit-3.0.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-bmunit/3.0.3/byteman-bmunit-3.0.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 6K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-install/3.0.3/byteman-install-3.0.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: org/jboss/byteman/byteman/3.0.3/byteman-3.0.3.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 251K from central
[artifact:dependencies] Transferring 743K from central
[artifact:dependencies] Transferring 371K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-submit/3.0.3/byteman-submit-3.0.3.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 14K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-bmunit/3.0.3/byteman-bmunit-3.0.3.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.ant/0.7.5.201505241946/org.jacoco.ant-0.7.5.201505241946.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 38K from central
[artifact:dependencies] Transferring 37K from central
[artifact:dependencies] Downloading: org/jboss/byteman/byteman-install/3.0.3/byteman-install-3.0.3.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 9K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.core/0.7.5.201505241946/org.jacoco.core-0.7.5.201505241946.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 130K from central
[artifact:dependencies] Downloading: org/jacoco/org.jacoco.report/0.7.5.201505241946/org.jacoco.report-0.7.5.201505241946.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 137K from central
[copy] Copying 9 files to /home/user/cassandra-trunk/build/lib/jars
[unzip] Expanding: /home/user/cassandra-trunk/build/lib/jars/org.jacoco.agent-0.7.5.201505241946.jar into /home/user/cassandra-trunk/build/lib/jars
check-gen-cql3-grammar:
gen-cql3-grammar:
[echo] Building Grammar /home/user/cassandra-trunk/src/antlr/Cql.g ...
generate-cql-html:
[artifact:dependencies] Downloading: com/datastax/wikitext/wikitext-core-ant/1.3/wikitext-core-ant-1.3.pom from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 3K from central
[artifact:dependencies] Downloading: org/fusesource/wikitext/wikitext-core/1.3/wikitext-core-1.3.pom from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 2K from central
[artifact:dependencies] Downloading: org/fusesource/wikitext/wikitext-project/1.3/wikitext-project-1.3.pom from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 4K from central
[artifact:dependencies] Downloading: org/fusesource/fusesource-pom/1.3/fusesource-pom-1.3.pom from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 13K from central
[artifact:dependencies] Downloading: org/fusesource/wikitext/textile-core/1.3/textile-core-1.3.pom from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 1K from central
[artifact:dependencies] Downloading: org/fusesource/wikitext/wikitext-core/1.3/wikitext-core-1.3.jar from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Downloading: com/datastax/wikitext/wikitext-core-ant/1.3/wikitext-core-ant-1.3.jar from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 237K from central
[artifact:dependencies] Transferring 32K from central
[artifact:dependencies] Downloading: org/fusesource/wikitext/textile-core/1.3/textile-core-1.3.jar from repository central at https://repo1.maven.org/maven2
[artifact:dependencies] Transferring 54K from central
generate-jflex-java:
[jflex] Generated: StandardTokenizerImpl.java
build-project:
[echo] apache-cassandra: /home/user/cassandra-trunk/build.xml
[javac] Compiling 45 source files to /home/user/cassandra-trunk/build/classes/thrift
[javac] Note: /home/user/cassandra-trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Compiling 1459 source files to /home/user/cassandra-trunk/build/classes/main
[javac] Note: Processing compiler hints annotations
[javac] Note: Processing compiler hints annotations
[javac] Note: Writing compiler command file at META-INF/hotspot_compiler
[javac] Note: Done processing compiler hints annotations
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Creating empty /home/user/cassandra-trunk/build/classes/main/org/apache/cassandra/hints/package-info.class
createVersionPropFile:
[mkdir] Created dir: /home/user/cassandra-trunk/src/resources/org/apache/cassandra/config
[propertyfile] Creating new property file: /home/user/cassandra-trunk/src/resources/org/apache/cassandra/config/version.properties
[copy] Copying 18 files to /home/user/cassandra-trunk/build/classes/main
[copy] Copying 1 file to /home/user/cassandra-trunk/conf
build:
build-test:
[javac] Compiling 481 source files to /home/user/cassandra-trunk/build/test/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 22 files to /home/user/cassandra-trunk/build/test/classes
stress-build:
[mkdir] Created dir: /home/user/cassandra-trunk/build/classes/stress
[javac] Compiling 118 source files to /home/user/cassandra-trunk/build/classes/stress
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/stress
write-poms:
init:
maven-ant-tasks-localrepo:
maven-ant-tasks-download:
maven-ant-tasks-init:
maven-declare-dependencies:
_write-poms:
jar:
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/main/META-INF
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/thrift/META-INF
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/main/META-INF
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/thrift/META-INF
[jar] Building jar: /home/user/cassandra-trunk/build/apache-cassandra-thrift-3.10-SNAPSHOT.jar
[jar] Building jar: /home/user/cassandra-trunk/build/apache-cassandra-3.10-SNAPSHOT.jar
[mkdir] Created dir: /home/user/cassandra-trunk/build/classes/stress/META-INF
[mkdir] Created dir: /home/user/cassandra-trunk/build/tools/lib
[jar] Building jar: /home/user/cassandra-trunk/build/tools/lib/stress.jar
BUILD SUCCESSFUL
Total time: 4 minutes 45 secondsuser@localhost:~/cassandra-trunk$ ant -version
Apache Ant(TM) version 1.9.7 compiled on May 16 2016
user@localhost:~/cassandra-trunk$ export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_45/
Wow, build is success! Next launch your eclipse and create cassandra eclipse development descriptors.
user@localhost:~/cassandra-trunk$ ant generate-eclipse-files
Buildfile: /home/user/cassandra-trunk/build.xml
init:
maven-ant-tasks-localrepo:
maven-ant-tasks-download:
maven-ant-tasks-init:
maven-declare-dependencies:
maven-ant-tasks-retrieve-build:
init-dependencies:
[echo] Loading dependency paths from file: /home/user/cassandra-trunk/build/build-dependencies.xml
init-dependencies:
[echo] Loading dependency paths from file: /home/user/cassandra-trunk/build/build-dependencies-sources.xml
[unzip] Expanding: /home/user/cassandra-trunk/build/lib/jars/org.jacoco.agent-0.7.5.201505241946.jar into /home/user/cassandra-trunk/build/lib/jars
check-gen-cql3-grammar:
gen-cql3-grammar:
generate-cql-html:
generate-jflex-java:
build-project:
[echo] apache-cassandra: /home/user/cassandra-trunk/build.xml
createVersionPropFile:
[propertyfile] Updating property file: /home/user/cassandra-trunk/src/resources/org/apache/cassandra/config/version.properties
[copy] Copying 1 file to /home/user/cassandra-trunk/build/classes/main
build:
build-test:
generate-eclipse-files:
[mkdir] Created dir: /home/user/cassandra-trunk/.settings
BUILD SUCCESSFUL
Total time: 1 second
Everything is good and assuming eclipse is also started, now let's import the eclipse settings. Using this sequence,'File' -> 'Import...' -> 'Existing Projects into Workspace'. Click, next and in the 'Select root directory:' textbox , browse to the git repository cloned earlier and select it. Leave the remaining as is and click Finish.
If you get error, fix it :D for me, the default java configured for eclipse is 7 and hence, code compile is java 7, so I have to change that and move java lib to the top of the project. Particulary you can move to java lib in 'Order and Export' in project's properties.
There are two class file which give compile errors, which I have to commented out the code.
- ./test/unit/org/apache/cassandra/auth/StubAuthorizer.java
- ./test/unit/org/apache/cassandra/db/partition/PartitionImplementationTest.java
since both classes are unit test, I don't actually bothered.
Okay, we take a pause here, in the next article, I will explain testing in cassandra. Stay tune!
No comments:
Post a Comment