Database Reference
In-Depth Information
NOTE
If you want to see detailed information on what is happening during the build, you can pass Ant the -v
option to cause it to output verbose details regarding each operation it performs.
Additional Build Targets
To compile the server, you can simply execute antas shown previously. But there are a couple of
other targets in the build file that you might be interested in:
ttestt
Users will probably find this the most helpful, as it executes the battery of unit tests. You can
also check out the unit test sources themselves for some useful examples of how to interact
with Cassandra.
gen--thriiftt--java
This target generates the Apache Thrift client interface for interacting with the database in
Java.
gen--thriiftt--py
This target generates the Thrift client interface for Python users.
buiilld--jar
To create a Java Archive (JAR) file for distribution, execute the command >antjar. This will
perform a complete build and output a file into the builddirectory called apache-cassandra-
x.x.x.jar.
Building with Maven
The original authors of Cassandra apparently didn't care much for Maven, so the early releases
did not include any Maven POM file. But because so many Java developers have begun to favor
Maven over Ant, and the tooling support in IDEs for Maven has become so strong, there's a
pom.xmlcontribution to the project so you can build from Maven if you prefer.
To build the source from Maven, navigate to <cassandra-home>/contrib/mavenand execute this
command:
$ mvn clean install
Search WWH ::




Custom Search