<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.jboss.teiid</groupId>
    <artifactId>connectors</artifactId>
    <version>8.10.0.Final</version>
  </parent>
    
  <groupId>org.jboss.teiid.connectors</groupId>
  <artifactId>translator-cassandra</artifactId>
  <name>Cassandra CQL translator</name>
  <description>Integrates the query engine with CQL.</description>
  
  <dependencies>
        <dependency>
            <groupId>org.jboss.teiid</groupId>
            <artifactId>teiid-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.teiid</groupId>
            <artifactId>teiid-common-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.resource</groupId>
          <artifactId>connector-api</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
			<groupId>com.datastax.cassandra</groupId>
			<artifactId>cassandra-driver-core</artifactId>
			<exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpcore</artifactId>
                </exclusion>            
                <exclusion>
                    <groupId>org.apache.thrift</groupId>
                    <artifactId>libthrift</artifactId>
                </exclusion>            
			     <exclusion>
			     	<artifactId>cassandra-thrift</artifactId>
			     	<groupId>org.apache.cassandra</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>commons-lang</artifactId>
			     	<groupId>commons-lang</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>servlet-api</artifactId>
			     	<groupId>javax.servlet</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>httpclient</artifactId>
			     	<groupId>org.apache.httpcomponents</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>lz4</artifactId>
			     	<groupId>net.jpountz.lz4</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>compress-lzf</artifactId>
			     	<groupId>com.ning</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>commons-cli</artifactId>
			     	<groupId>commons-cli</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>commons-codec</artifactId>
			     	<groupId>commons-codec</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>antlr</artifactId>
			     	<groupId>org.antlr</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>avro</artifactId>
			     	<groupId>org.apache.cassandra.deps</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>jamm</artifactId>
			     	<groupId>com.github.stephenc</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>jline</artifactId>
			     	<groupId>jline</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>json-simple</artifactId>
			     	<groupId>com.googlecode.json-simple</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>snakeyaml</artifactId>
			     	<groupId>org.yaml</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>snaptree</artifactId>
			     	<groupId>edu.stanford.ppl</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>jbcrypt</artifactId>
			     	<groupId>org.mindrot</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>high-scale-lib</artifactId>
			     	<groupId>
			     		com.github.stephenc.high-scale-lib
			     	</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>netty</artifactId>
			     	<groupId>io.netty</groupId>
			     </exclusion>
			     <!-- <exclusion>
			     	<artifactId>slf4j-api</artifactId>
			     	<groupId>org.slf4j</groupId>
			     </exclusion> -->
			     <exclusion>
			     	<artifactId>log4j</artifactId>
			     	<groupId>log4j</groupId>
			     </exclusion>
			     <exclusion>
			     	<artifactId>slf4j-log4j12</artifactId>
			     	<groupId>org.slf4j</groupId>
			     </exclusion>
                 <exclusion>
                    <artifactId>org.codehaus.jackson</artifactId>
                    <groupId>jackson-core-asl</groupId>
                 </exclusion>
                 <exclusion>
                    <artifactId>org.codehaus.jackson</artifactId>
                    <groupId>jackson-mapper-asl</groupId>
                 </exclusion>                 
			</exclusions>
		</dependency>     
		<dependency>
          <groupId>com.google.guava</groupId>
	      <artifactId>guava</artifactId>
		</dependency>
		<dependency>
          <groupId>com.codahale.metrics</groupId>
          <artifactId>metrics-core</artifactId>
        </dependency>
    </dependencies>
    
    <build>
        <outputDirectory>target/classes</outputDirectory>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/*.xml</include>
                    <include>**/*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <excludes>
                    <exclude>**/*.xml</exclude>
                    <exclude>**/*.properties</exclude>
                </excludes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <descriptors>
                        <descriptor>kits/jboss-as7-dist.xml</descriptor>
                        <descriptor>kits/embedded-dist.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                  <execution>
                    <id>create-assemblies</id>
                    <phase>package</phase>
                    <goals>
                      <goal>single</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>   
        </plugins>         
    </build>
</project>