| <?xml version="1.0"?> |
| <!-- |
| ~ |
| ~ Licensed 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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>odf-spark</artifactId> |
| <packaging>jar</packaging> |
| <name>odf-spark</name> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-api</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-core</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-core</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-messaging</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-messaging</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-store</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- Workaround: Add odf-spark-example-application because dynamic jar load does not seem to work on IBM JDK --> |
| <dependency> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-spark-example-application</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-launcher_2.11</artifactId> |
| <version>2.1.0</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>2.4</version> |
| </dependency> |
| <!-- The following Spark dependencies are needed for testing only. --> |
| <!-- Nevertheless, they have to be added as compile dependencies in order to become available to the SDPFactory. --> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_2.11</artifactId> |
| <version>2.1.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-sql_2.11</artifactId> |
| <version>2.1.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <directory>${project.build.directory}/downloads</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19</version> |
| <configuration> |
| <systemPropertyVariables> |
| <odf.zookeeper.connect>${testZookeepeConnectionString}</odf.zookeeper.connect> |
| <odf.logspec>${odf.unittest.logspec}</odf.logspec> |
| <odf.build.project.name>${project.name}</odf.build.project.name> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>download-jar-file</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-api</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/downloads/META-INF/spark</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-spark-example-application</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>/tmp/odf-spark</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.atlas.odf</groupId> |
| <artifactId>odf-spark-example-application</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/downloads/META-INF/spark</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.wink</groupId> |
| <artifactId>wink-json4j</artifactId> |
| <version>1.4</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/downloads/META-INF/spark</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| <includes>**/*</includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>integration-tests</id> |
| <activation> |
| <property> |
| <name>reduced-tests</name> |
| <value>!true</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.19</version> |
| <configuration> |
| <systemPropertyVariables> |
| <odf.zookeeper.connect>${testZookeepeConnectionString}</odf.zookeeper.connect> |
| <odf.logspec>${odf.integrationtest.logspec}</odf.logspec> |
| </systemPropertyVariables> |
| <dependenciesToScan> |
| <dependency>org.apache.atlas.odf:odf-core</dependency> |
| </dependenciesToScan> |
| <includes> |
| <include>**/integrationtest/**/SparkDiscoveryServiceLocalTest.java</include> |
| </includes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>verify</id> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |