This repository has been archived by the owner on Nov 22, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from codingismy11to7/solandra
Add a maven pomfile
- Loading branch information
Showing
1 changed file
with
328 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,328 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>solandra</groupId> | ||
<artifactId>solandra</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<appDir>${project.build.directory}/solandra-app</appDir> | ||
<skipLongTests>true</skipLongTests> | ||
</properties> | ||
|
||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<testSourceDirectory>test</testSourceDirectory> | ||
<testResources> | ||
<testResource> | ||
<directory>resources</directory> | ||
</testResource> | ||
</testResources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<version>1.7</version> | ||
<executions> | ||
<execution> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>add-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>thrift/gen-java</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>2.4</version> | ||
<configuration> | ||
<finalName>solandra</finalName> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>2.4</version> | ||
<executions> | ||
<execution> | ||
<id>copy-deps</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${appDir}/lib</outputDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.5</version> | ||
<executions> | ||
<execution> | ||
<id>copy-solandra-jar</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-resources</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${appDir}/lib</outputDirectory> | ||
<resources> | ||
<resource> | ||
<directory>${project.build.directory}</directory> | ||
<includes> | ||
<include>solandra.jar</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>copy-configs</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-resources</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${appDir}/conf</outputDirectory> | ||
<resources> | ||
<resource> | ||
<directory>resources/solr</directory> | ||
<includes> | ||
<include>solrconfig.xml</include> | ||
<include>schema.xml</include> | ||
<include>*.txt</include> | ||
<include>jetty.xml</include> | ||
<include>jetty-logging.xml</include> | ||
</includes> | ||
</resource> | ||
<resource> | ||
<directory>resources</directory> | ||
<includes> | ||
<include>solandra.properties</include> | ||
</includes> | ||
</resource> | ||
<resource> | ||
<directory>resources/cassandra</directory> | ||
<includes> | ||
<include>solandra-env.sh</include> | ||
<include>cassandra.yaml</include> | ||
<include>log4j-tools.properties</include> | ||
<include>log4j-server.properties</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>copy-bin</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-resources</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${appDir}/bin</outputDirectory> | ||
<resources> | ||
<resource> | ||
<directory>resources/cassandra</directory> | ||
<includes> | ||
<include>solandra</include> | ||
<include>cassandra-cli</include> | ||
<include>nodetool</include> | ||
<include>solandra.in.sh</include> | ||
<include>solandra.bat</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>1.7</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<chmod dir="${appDir}/bin" perm="755" | ||
includes="solandra,cassandra-cli,nodetool" /> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.12</version> | ||
<executions> | ||
<execution> | ||
<id>tests</id> | ||
<phase>integration-test</phase> | ||
<goals> | ||
<goal>test</goal> | ||
</goals> | ||
<configuration> | ||
<argLine>-Xmx1G | ||
-Dlog4j.configuration=file:///${basedir}/resources/cassandra/log4j-tools.properties | ||
-Dlog4j.defaultInitOverride=true</argLine> | ||
<includes> | ||
<include>**/SolandraTests.java</include> | ||
</includes> | ||
<redirectTestOutputToFile>true</redirectTestOutputToFile> | ||
<additionalClasspathElements> | ||
<additionalClasspathElement>${appDir}</additionalClasspathElement> | ||
<additionalClasspathElement>${appDir}/conf</additionalClasspathElement> | ||
</additionalClasspathElements> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>long-tests</id> | ||
<phase>integration-test</phase> | ||
<goals> | ||
<goal>test</goal> | ||
</goals> | ||
<configuration> | ||
<argLine>-Xmx1G | ||
-Dlog4j.configuration=file:///${basedir}/resources/cassandra/log4j-tools.properties | ||
-Dlog4j.defaultInitOverride=true</argLine> | ||
<includes> | ||
<include>**/IndexManagerTests.java</include> | ||
</includes> | ||
<skipTests>${skipLongTests}</skipTests> | ||
<redirectTestOutputToFile>true</redirectTestOutputToFile> | ||
<additionalClasspathElements> | ||
<additionalClasspathElement>${appDir}</additionalClasspathElement> | ||
<additionalClasspathElement>${appDir}/conf</additionalClasspathElement> | ||
</additionalClasspathElements> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
<pluginManagement> | ||
<plugins> | ||
<!--This plugin's configuration is used to store Eclipse m2e settings | ||
only. It has no influence on the Maven build itself. --> | ||
<plugin> | ||
<groupId>org.eclipse.m2e</groupId> | ||
<artifactId>lifecycle-mapping</artifactId> | ||
<version>1.0.0</version> | ||
<configuration> | ||
<lifecycleMappingMetadata> | ||
<pluginExecutions> | ||
<pluginExecution> | ||
<pluginExecutionFilter> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<versionRange>[2.1,)</versionRange> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
</pluginExecutionFilter> | ||
<action> | ||
<ignore /> | ||
</action> | ||
</pluginExecution> | ||
</pluginExecutions> | ||
</lifecycleMappingMetadata> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.10</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.6.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-log4j12</artifactId> | ||
<version>1.6.4</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-collections</groupId> | ||
<artifactId>commons-collections</artifactId> | ||
<version>3.2.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.solr</groupId> | ||
<artifactId>solr-core</artifactId> | ||
<version>3.4.0</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-jdk14</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mortbay.jetty</groupId> | ||
<artifactId>jetty</artifactId> | ||
<version>6.1.26</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mortbay.jetty</groupId> | ||
<artifactId>jetty-util</artifactId> | ||
<version>6.1.26</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mortbay.jetty</groupId> | ||
<artifactId>jsp-2.1</artifactId> | ||
<version>6.1.14</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.cassandra</groupId> | ||
<artifactId>cassandra-all</artifactId> | ||
<version>1.1.0-beta2</version> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>slf4j-api</artifactId> | ||
<groupId>org.slf4j</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<!-- TODO: Added only because missing from the Cassandra pom. Can be delete here when added by Cassandra. --> | ||
<dependency> | ||
<groupId>com.yammer.metrics</groupId> | ||
<artifactId>metrics-core</artifactId> | ||
<version>2.0.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>edu.stanford.ppl</groupId> | ||
<artifactId>snaptree</artifactId> | ||
<version>0.1</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |