<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>

	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>

	<groupId>ch.uzh.ifi.ddis.ifp</groupId>
	<artifactId>cassandra-esper</artifactId>
	<version>0.2.0</version>
	<name>Cassandra for Esper</name>

	<licenses>
		<license>
			<name>GNU General Public License, version 2</name>
			<url>http://www.gnu.org/licenses/gpl-2.0.html</url>
		</license>
	</licenses>

	<inceptionYear>2013</inceptionYear>

	<developers>
		<developer>
			<name>Thomas Scharrenbach</name>
			<email>scharrenbach@ifi.uzh.ch</email>
			<organization>University of Zurich</organization>
			<organizationUrl>http://www.ifi.uzh.ch/ddis</organizationUrl>
		</developer>
	</developers>

	<contributors>
		<contributor>
			<name>Christian Bockermann</name>
			<email>christian.bockermann@udo.edu</email>
			<organization>Technical University of Dortmund</organization>
			<organizationUrl>http://www.tu-dortmund.de</organizationUrl>
		</contributor>
	</contributors>

	<organization>
		<name>University of Zurich</name>
		<url>http://www.ifi.uzh.ch</url>
	</organization>

	<url>https://bitbucket.org/scharrenbach/cassandra-esper</url>

	<description>The Cassandra-Esper project integrates the Cassandra key-vale store into the Esper complex event processing engine.</description>

	<issueManagement>
		<system>BitBucket</system>
		<url>https://bitbucket.org/scharrenbach/cassandra-esper/issues</url>
	</issueManagement>

	<scm>
		<connection>https://bitbucket.org/scharrenbach/cassandra-esper.git</connection>
		<developerConnection>scm:git:ssh://git@bitbucket.org/scharrenbach/cassandra-esper.git</developerConnection>
		<url>scm:git:ssh://git@bitbucket.org/scharrenbach/cassandra-esper</url>
	</scm>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<version>1.4</version>
				<configuration>
					<verbose>false</verbose>
				</configuration>
				<executions>
					<execution>
						<id>first</id>
						<goals>
							<goal>update-file-header</goal>
						</goals>
						<phase>process-sources</phase>
						<configuration>
							<licenseName>gpl_v2</licenseName>
							<roots>
								<root>src/main/java</root>
								<root>src/test</root>
							</roots>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>2.7</version>
			</plugin>


			<!-- skip unit test run, tests to be executed during integration-test -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.15</version>
				<configuration>
					<skip>true</skip>
				</configuration>
				<executions>
					<execution>
						<id>surefire-it</id>
						<phase>integration-test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
							<skip>false</skip>
							<suiteXmlFiles>
								<suiteXmlFile>src/it/resources/testng.xml</suiteXmlFile>
							</suiteXmlFiles>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.7.1</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cassandra-maven-plugin</artifactId>
				<version>1.2.1-1</version>
				<dependencies>
					<dependency>
						<groupId>org.xerial.snappy</groupId>
						<artifactId>snappy-java</artifactId>
						<version>1.0.4.1</version>
						<type>jar</type>
					</dependency>
				</dependencies>
				<configuration>
					<rpcAddress>127.0.0.1</rpcAddress>
					<rpcPort>9160</rpcPort>
					<jmxPort>7199</jmxPort>
					<storagePort>7000</storagePort>
					<stopPort>8081</stopPort>
					<clusterSize>1</clusterSize>
					<listenAddress>127.0.0.1</listenAddress>
					<!-- Without native transport local builds will fail. -->
					<yaml>start_native_transport: true</yaml>
					<keyspace>excelsior</keyspace>
					<cqlScript>src/it/resources/cassandra/load.cql</cqlScript>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>start-cluster</goal>
							<goal>delete</goal>
							<goal>cql-exec</goal>
							<goal>stop-cluster</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		</plugins>

		<!-- Mark tests as integration tests by putting them into the 'it' folder 
			instead of the 'test' folder -->
		<testSourceDirectory>src/it/java</testSourceDirectory>
		<testResources>
			<testResource>
				<filtering>false</filtering>
				<directory>src/it/resources</directory>
			</testResource>
		</testResources>

	</build>

	<dependencies>

		<dependency>
			<groupId>org.apache.cassandra</groupId>
			<artifactId>cassandra-all</artifactId>
			<version>1.2.5</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.espertech</groupId>
			<artifactId>esper</artifactId>
			<version>4.9.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.espertech</groupId>
			<artifactId>esperio-csv</artifactId>
			<version>4.9.0</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.datastax.cassandra</groupId>
			<artifactId>cassandra-driver-core</artifactId>
			<version>1.0.0</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>ch.uzh.ifi.ddis.ifp</groupId>
			<artifactId>testng4esper</artifactId>
			<version>0.3.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.8.5</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

</project>
