Skip to content

Commit

Permalink
found a public maven repo that hosts cassandra depencenices, no more …
Browse files Browse the repository at this point in the history
  • Loading branch information
ticktock committed Jun 7, 2010
1 parent 39300c4 commit db5d12e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 49 deletions.
14 changes: 3 additions & 11 deletions README.markdown
Expand Up @@ -91,16 +91,8 @@ This is a much simpler configuration. If a MasterElector is not set on the Persi


##Building
Since there isnt a clean maven distribution of Cassandra at this point, you need to do some initial setup before you can build.
Download Cassandra, and unpack such that the cassandra directory is a sibling directory of qsandra.
There is a maven repo at http://maven.shorrockin.com/ that thankfully unpacks and deploys all the cassandra dependencies, so

for example
mvn clean install

/path/to/projects/qsandra/

/path/to/projects/apache-cassandra-0.6.1/

All the cassandra dependencies are declared as system dependencies in the pom file, so you need to unpack the cassandra distro as stated above
or set the ${cassandra.home} maven property while building to point to where you unpacked. (mvn -Dcassandra.home=/different/path ...)

You should be able to mvn clean install at this point.
should do it.
85 changes: 47 additions & 38 deletions pom.xml
Expand Up @@ -11,13 +11,15 @@
<properties>
<activemq.version>5.3.1</activemq.version>
<cassandra.version>0.6.1</cassandra.version>
<thrift.version>r917130</thrift.version>
<thrift.version>917130</thrift.version>
<antlr.version>3.1.3</antlr.version>
<common.cli.version>1.1</common.cli.version>
<common.collections.version>3.2.1</common.collections.version>
<common.lang.version>2.4</common.lang.version>
<hadoop.version>0.20.1</hadoop.version>
<google.collections.version>1.0</google.collections.version>
<highscale.version>1.0</highscale.version>
<scala.version>2.7.7</scala.version>
<ivy.version>2.1.0</ivy.version>
<jackson.version>1.4.0</jackson.version>
<jline.version>0.9.94</jline.version>
Expand All @@ -28,23 +30,45 @@
<projectBaseUri>${project.baseUri}</projectBaseUri>
</properties>


<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<cassandra.home>${project.basedir}${file.separator}..${file.separator}apache-cassandra-${cassandra.version}</cassandra.home>
<cassandra.data>target/</cassandra.data>
<zookeeper.data>${project.build.directory}${file.separator}</zookeeper.data>
<zookeeper.data>target/</zookeeper.data>
<cassandra.conf>${project.build.testOutputDirectory}${file.separator}</cassandra.conf>
<thrift.port>9160</thrift.port>
<zookeeper.port>9970</zookeeper.port>
</properties>
</profile>
</profiles>


<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-snapshots/</url>
</repository>

<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases/</url>
</repository>

<repository>
<id>shorrockin.com</id>
<name>Shorrockin Repository</name>
<url>http://maven.shorrockin.com/</url>
</repository>
</repositories>


<build>
<testResources>
<testResource>
Expand Down Expand Up @@ -114,36 +138,32 @@
<version>${zookeeper.version}</version>
</dependency>

<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>


<!--Cassandra-->
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra</artifactId>
<version>${cassandra.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/apache-cassandra-${cassandra.version}.jar</systemPath>
</dependency>

<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>thrift</artifactId>
<artifactId>libthrift</artifactId>
<version>${thrift.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/libthrift-${thrift.version}.jar</systemPath>
</dependency>
<!--Cassandra Testing-->

<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>${antlr.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/antlr-${antlr.version}.jar</systemPath>
</dependency>
<dependency>
<groupId>com.reardencommerce.kernel</groupId>
<artifactId>collections</artifactId>
<version>${cassandra.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/clhm-production.jar</systemPath>
<groupId>com.google.clhm</groupId>
<artifactId>clhm-production</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
Expand All @@ -169,19 +189,12 @@
<version>${google.collections.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>${hadoop.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/hadoop-core-${hadoop.version}.jar</systemPath>
</dependency>
<dependency>
<groupId>org.cliffc</groupId>
<groupId>high-scale-lib</groupId>
<artifactId>high-scale-lib</artifactId>
<version>${cassandra.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/high-scale-lib.jar</systemPath>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.ivy</groupId>
Expand All @@ -201,24 +214,20 @@
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf</groupId>
<artifactId>jline</artifactId>
<version>${jline.version}</version>
<scope>system</scope>
<systemPath>${cassandra.home}/lib/jline-${jline.version}.jar</systemPath>
</dependency>

<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>${json.simple.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down

0 comments on commit db5d12e

Please sign in to comment.