<?xml version="1.0" encoding="UTF-8"?>
<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>
    <artifactId>alfresco-an2-cx1</artifactId>
    <name>Alfresco AN2 Cassandra 1</name>
    <packaging>war</packaging>

    <parent>
        <groupId>org.alfresco</groupId>
        <artifactId>alfresco-an2</artifactId>
        <version>0.1.0-SNAPSHOT</version>
    </parent>
    
    <dependencies>
    
        <!-- AN2 -->
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>alfresco-an2-server</artifactId>
            <version>${project.version}</version>
        </dependency>
        
        <!-- AN2 Cassandra Utilities -->
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>alfresco-an2-cx-util</artifactId>
            <version>${project.version}</version>
        </dependency>
        
        <!-- AN2 Client for integration testing -->
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>alfresco-an2-client</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>alfresco-an2-util</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>alfresco-an2-client</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        
        <!-- Cassandra -->
        <dependency>
            <groupId>com.datastax.cassandra</groupId>
            <artifactId>cassandra-driver-core</artifactId>
            <version>2.2.0-rc1</version>
        </dependency>

    </dependencies>
    
    <build>
        <!-- All plugins are configured in the root parent pom -->
        <plugins>
            <!-- Invoke Failsafe plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
            </plugin>
            <!-- Reserve ports -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>
            <!-- Invoke Cassandra plugin -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cassandra-maven-plugin</artifactId>
                <version>2.0.0-1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>start</goal>
                            <goal>stop</goal>
                        </goals>
                        <configuration>
                            <listenAddress>${cassandra.listenAddress}</listenAddress>
                            <jmxPort>${cassandra.jmxPort}</jmxPort>
                            <rpcPort>${cassandra.rpcPort}</rpcPort>
                            <stopPort>${cassandra.stopPort}</stopPort>
                            <storagePort>${cassandra.storagePort}</storagePort>
                            <startNativeTransport>true</startNativeTransport>
                            <nativeTransportPort>${cassandra.nativePort}</nativeTransportPort>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Invoke Jetty plugin -->
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
    
</project>
