| <?xml version='1.0'?> |
| <!-- |
| |
| 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. |
| |
| --> |
| <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"> |
| <parent> |
| <artifactId>phoenix-connectors</artifactId> |
| <groupId>org.apache.phoenix</groupId> |
| <version>6.0.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>phoenix5-spark3-it</artifactId> |
| <name>Tests for Phoenix Spark 3 Connector for Phoenix 5</name> |
| |
| <properties> |
| <phoenix.version>${phoenix-five.version}</phoenix.version> |
| <hbase.version>${hbase-two.version}</hbase.version> |
| <hbase.compat.version>${hbase-two.compat.version}</hbase.compat.version> |
| <hadoop.version>${hadoop-three.version}</hadoop.version> |
| <jdk.version>1.8</jdk.version> |
| <phoenix.main.version>5</phoenix.main.version> |
| <spark.version>${spark3.version}</spark.version> |
| <scala.version>2.12.10</scala.version> |
| <scala.binary.version>2.12</scala.binary.version> |
| </properties> |
| |
| <dependencies> |
| |
| <!-- Spark and scala dependencies --> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-catalyst_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-sql_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <version>${scala.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-reflect</artifactId> |
| <version>${scala.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Phoenix dependencies --> |
| <dependency> |
| <groupId>org.apache.phoenix</groupId> |
| <artifactId>phoenix5-spark3</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.phoenix</groupId> |
| <artifactId>phoenix-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.phoenix</groupId> |
| <artifactId>phoenix-hbase-compat-${hbase.compat.version}</artifactId> |
| <scope>test</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.phoenix</groupId> |
| <artifactId>phoenix-core</artifactId> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scalactic</groupId> |
| <artifactId>scalactic_${scala.binary.version}</artifactId> |
| <!-- Newer versions would require refactor --> |
| <version>3.1.4</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest_${scala.binary.version}</artifactId> |
| <version>3.1.4</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Minicluster dependencies --> |
| <dependency> |
| <groupId>org.apache.hbase</groupId> |
| <artifactId>hbase-it</artifactId> |
| <type>test-jar</type> |
| <!-- NOT Test scope to get transitive dependencies --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-minicluster</artifactId> |
| <!-- NOT Test scope to get transitive dependencies --> |
| </dependency> |
| |
| |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-test-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-test-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/it/java</source> |
| <source>src/it/scala</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <configuration> |
| <charset>${project.build.sourceEncoding}</charset> |
| <jvmArgs> |
| <jvmArg>-Xmx1024m</jvmArg> |
| </jvmArgs> |
| <scalaVersion>${scala.version}</scalaVersion> |
| <scalaCompatVersion>${scala.binary.version}</scalaCompatVersion> |
| </configuration> |
| <executions> |
| <execution> |
| <id>scala-compile-first</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>add-source</goal> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-test-compile</id> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest-maven-plugin</artifactId> |
| <version>1.0</version> |
| <configuration> |
| <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
| <junitxml>.</junitxml> |
| <filereports>WDF TestSuite.txt</filereports> |
| <skipTests>${skip-scala-tests}</skipTests> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <!-- Need this false until we can switch to JUnit 4.13 due |
| to https://github.com/junit-team/junit4/issues/1223 --> |
| <parallel>false</parallel> |
| <tagsToExclude>Integration-Test</tagsToExclude> |
| <argLine>-Xmx1536m -XX:ReservedCodeCacheSize=512m</argLine> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <ignoredDependencies> |
| <ignoredDependency>org.apache.hadoop:hadoop-common</ignoredDependency> |
| <ignoredDependency>org.apache.hadoop:hadoop-minicluster</ignoredDependency> |
| <ignoredDependency>org.apache.phoenix:phoenix-hbase-compat-${hbase.compat.version}</ignoredDependency> |
| <ignoredDependency>org.apache.hbase:hbase-it</ignoredDependency> |
| </ignoredDependencies> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>scala-tests-enabled</id> |
| <activation> |
| <property> |
| <name>scala-tests-enabled</name> |
| </property> |
| </activation> |
| <properties> |
| <skip-scala-tests>false</skip-scala-tests> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |