| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| POM file. |
| --> |
| <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.apache.ignite</groupId> |
| <artifactId>ignite-cassandra</artifactId> |
| <version>2.10.0</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>ignite-cassandra-store</artifactId> |
| <version>2.10.0</version> |
| <url>http://ignite.apache.org</url> |
| |
| <properties> |
| <commons-beanutils.version>1.9.4</commons-beanutils.version> |
| <cassandra-driver.version>3.2.0</cassandra-driver.version> |
| <cassandra-all.version>3.11.3</cassandra-all.version> |
| <netty.version>4.1.27.Final</netty.version> |
| <metrics-core.version>3.0.2</metrics-core.version> |
| </properties> |
| |
| <dependencies> |
| <!-- Apache commons --> |
| <dependency> |
| <groupId>commons-beanutils</groupId> |
| <artifactId>commons-beanutils</artifactId> |
| <version>${commons-beanutils.version}</version> |
| </dependency> |
| |
| <!-- Ignite --> |
| <dependency> |
| <groupId>org.apache.ignite</groupId> |
| <artifactId>ignite-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.ignite</groupId> |
| <artifactId>ignite-spring</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.ignite</groupId> |
| <artifactId>ignite-log4j</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.ignite</groupId> |
| <artifactId>ignite-tools</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Cassandra and required dependencies --> |
| <dependency> |
| <groupId>com.datastax.cassandra</groupId> |
| <artifactId>cassandra-driver-core</artifactId> |
| <version>${cassandra-driver.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-handler</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-common</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-resolver</artifactId> |
| <version>${netty.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.codahale.metrics</groupId> |
| <artifactId>metrics-core</artifactId> |
| <version>${metrics-core.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cassandra</groupId> |
| <artifactId>cassandra-all</artifactId> |
| <version>${cassandra-all.version}</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>log4j-over-slf4j</artifactId> |
| <groupId>org.slf4j</groupId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Apache log4j --> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.7.0</version> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| <fork>true</fork> |
| <debug>false</debug> |
| <debuglevel>lines,vars,source</debuglevel> |
| <meminitial>256</meminitial> |
| <maxmem>512</maxmem> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.10</version> |
| <executions> |
| <execution> |
| <id>copy-all-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/tests-package/lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <excludeArtifactIds> |
| netty-all,cassandra-all,snappy-java,lz4,compress-lzf,commons-codec,commons-lang3,commons-math3, |
| concurrentlinkedhashmap-lru,antlr,ST4,antlr-runtime,jcl-over-slf4j,jackson-core-asl, |
| jackson-mapper-asl,json-simple,high-scale-lib,snakeyaml,jbcrypt,reporter-config3, |
| reporter-config-base,hibernate-validator,validation-api,jboss-logging,thrift-server, |
| disruptor,stream,fastutil,logback-core,logback-classic,libthrift,httpclient,httpcore, |
| cassandra-thrift,jna,jamm,joda-time,sigar,ecj,tools |
| </excludeArtifactIds> |
| </configuration> |
| </execution> |
| <!-- --> |
| <execution> |
| <id>copy-main-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/libs</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <excludeTransitive>true</excludeTransitive> |
| <excludeGroupIds> |
| org.apache.ignite,org.springframework,org.gridgain |
| </excludeGroupIds> |
| <excludeArtifactIds> |
| commons-logging,slf4j-api,cache-api,slf4j-api,aopalliance |
| </excludeArtifactIds> |
| <includeScope>runtime</includeScope> |
| </configuration> |
| </execution> |
| <!-- --> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.8</version> |
| <dependencies> |
| <dependency> |
| <groupId>ant-contrib</groupId> |
| <artifactId>ant-contrib</artifactId> |
| <version>1.0b3</version> |
| <exclusions> |
| <exclusion> |
| <groupId>ant</groupId> |
| <artifactId>ant</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>package-tests</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <taskdef resource="net/sf/antcontrib/antlib.xml" /> |
| <if> |
| <available file="${project.build.directory}/test-classes" type="dir" /> |
| <then> |
| <copy todir="${project.build.directory}/tests-package/lib"> |
| <fileset dir="${project.build.directory}"> |
| <include name="*.jar" /> |
| </fileset> |
| </copy> |
| |
| <jar destfile="${project.build.directory}/tests-package/lib/${project.artifactId}-${project.version}-tests.jar"> |
| <fileset dir="${project.build.directory}/test-classes"> |
| <include name="**/*.class" /> |
| </fileset> |
| </jar> |
| |
| <copy todir="${project.build.directory}/tests-package/settings"> |
| <fileset dir="${project.build.directory}/test-classes"> |
| <include name="**/*.properties" /> |
| <include name="**/*.xml" /> |
| </fileset> |
| </copy> |
| |
| <copy todir="${project.build.directory}/tests-package"> |
| <fileset dir="${project.build.testSourceDirectory}/../scripts"> |
| <include name="**/*" /> |
| </fileset> |
| </copy> |
| |
| <fixcrlf srcdir="${project.build.directory}/tests-package" eol="lf" eof="remove"> |
| <include name="*.sh" /> |
| </fixcrlf> |
| |
| <copy todir="${project.build.directory}/tests-package"> |
| <fileset dir="${project.build.testSourceDirectory}/.."> |
| <include name="bootstrap/**" /> |
| </fileset> |
| </copy> |
| |
| <fixcrlf srcdir="${project.build.directory}/tests-package/bootstrap" eol="lf" eof="remove"> |
| <include name="**" /> |
| </fixcrlf> |
| |
| <zip destfile="${project.build.directory}/ignite-cassandra-tests-${project.version}.zip" compress="true" whenempty="create" level="9" encoding="UTF-8" useLanguageEncodingFlag="true" createUnicodeExtraFields="not-encodeable"> |
| |
| <zipfileset dir="${project.build.directory}/tests-package" prefix="ignite-cassandra-tests"> |
| <exclude name="**/*.sh" /> |
| </zipfileset> |
| |
| <zipfileset dir="${project.build.directory}/tests-package" prefix="ignite-cassandra-tests" filemode="555"> |
| <include name="**/*.sh" /> |
| </zipfileset> |
| </zip> |
| </then> |
| </if> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |