2014-07-22 19:55:03 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-07-17 17:44:55 +00:00
|
|
|
<!--
|
|
|
|
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
|
|
|
|
|
2019-05-28 07:29:44 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2014-07-17 17:44:55 +00:00
|
|
|
|
|
|
|
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. See accompanying LICENSE file.
|
|
|
|
-->
|
2014-07-22 19:55:03 +00:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2014-07-17 17:44:55 +00:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
2019-05-27 06:24:59 +00:00
|
|
|
https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2014-07-17 17:44:55 +00:00
|
|
|
<parent>
|
|
|
|
<artifactId>hadoop-mapreduce-client</artifactId>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2020-03-29 17:54:25 +00:00
|
|
|
<version>3.4.0-SNAPSHOT</version>
|
2014-07-17 17:44:55 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>hadoop-mapreduce-client-nativetask</artifactId>
|
2020-03-29 17:54:25 +00:00
|
|
|
<version>3.4.0-SNAPSHOT</version>
|
2015-05-08 09:47:52 +00:00
|
|
|
<name>Apache Hadoop MapReduce NativeTask</name>
|
2014-07-17 17:44:55 +00:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- Needed for generating FindBugs warnings using parent pom -->
|
|
|
|
<mr.basedir>${project.parent.basedir}/../</mr.basedir>
|
2014-07-22 19:55:03 +00:00
|
|
|
</properties>
|
2014-07-17 17:44:55 +00:00
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.avro</groupId>
|
|
|
|
<artifactId>avro</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-07-24 11:44:09 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-mapreduce-client-common</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-08-12 11:54:13 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.assertj</groupId>
|
|
|
|
<artifactId>assertj-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-11-18 20:03:25 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.lz4</groupId>
|
|
|
|
<artifactId>lz4-java</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-07-17 17:44:55 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<properties>
|
|
|
|
<property>
|
|
|
|
<name>listener</name>
|
|
|
|
<value>org.apache.hadoop.test.TimedOutTestsListener</value>
|
|
|
|
</property>
|
|
|
|
</properties>
|
|
|
|
<includes>
|
2014-09-02 03:00:48 +00:00
|
|
|
<include>**/*Test.java</include>
|
|
|
|
<include>**/Test*.java</include>
|
2014-07-22 19:55:03 +00:00
|
|
|
</includes>
|
2014-07-17 17:44:55 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-09-05 20:41:18 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>src/main/native/testData/*</exclude>
|
2020-11-20 14:12:20 +00:00
|
|
|
<exclude>**/lz4.h</exclude>
|
|
|
|
<exclude>**/lz4.c</exclude>
|
2014-09-05 20:41:18 +00:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-07-17 17:44:55 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>native</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<snappy.prefix></snappy.prefix>
|
|
|
|
<snappy.lib></snappy.lib>
|
|
|
|
<snappy.include></snappy.include>
|
|
|
|
<require.snappy>false</require.snappy>
|
2017-01-04 14:46:25 +00:00
|
|
|
<zstd.prefix></zstd.prefix>
|
|
|
|
<zstd.lib></zstd.lib>
|
|
|
|
<zstd.include></zstd.include>
|
|
|
|
<require.zstd>false</require.zstd>
|
2014-07-17 17:44:55 +00:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-os</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireOS>
|
|
|
|
<family>mac</family>
|
|
|
|
<family>unix</family>
|
|
|
|
<message>native build only supported on Mac or
|
|
|
|
Unix</message>
|
|
|
|
</requireOS>
|
|
|
|
</rules>
|
|
|
|
<fail>true</fail>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>make</id>
|
|
|
|
<phase>compile</phase>
|
2014-07-22 19:55:03 +00:00
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
2014-07-17 17:44:55 +00:00
|
|
|
<configuration>
|
|
|
|
<target>
|
2020-11-18 20:03:25 +00:00
|
|
|
<copy file="${basedir}/src/main/native/lz4/lz4.h"
|
2014-08-06 06:01:12 +00:00
|
|
|
todir="${project.build.directory}/native/" />
|
2020-11-18 20:03:25 +00:00
|
|
|
<copy file="${basedir}/src/main/native/lz4/lz4.c"
|
2014-08-06 06:01:12 +00:00
|
|
|
todir="${project.build.directory}/native/" />
|
2014-07-22 19:55:03 +00:00
|
|
|
<copy todir="${project.build.directory}/native/test/testData"
|
|
|
|
overwrite="true">
|
|
|
|
<fileset dir="${basedir}/src/main/native/testData" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
2014-07-17 17:44:55 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-01-14 19:02:34 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-maven-plugins</artifactId>
|
|
|
|
<executions>
|
2014-08-14 04:47:20 +00:00
|
|
|
<execution>
|
2016-01-14 19:02:34 +00:00
|
|
|
<id>cmake-compile</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals><goal>cmake-compile</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<source>${basedir}/src</source>
|
|
|
|
<vars>
|
|
|
|
<GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
|
|
|
|
<JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
|
|
|
|
<REQUIRE_SNAPPY>${require.snappy}</REQUIRE_SNAPPY>
|
|
|
|
<CUSTOM_SNAPPY_PREFIX>${snappy.prefix}</CUSTOM_SNAPPY_PREFIX>
|
|
|
|
<CUSTOM_SNAPPY_LIB>${snappy.lib}</CUSTOM_SNAPPY_LIB>
|
|
|
|
<CUSTOM_SNAPPY_INCLUDE>${snappy.include}</CUSTOM_SNAPPY_INCLUDE>
|
2017-01-04 14:46:25 +00:00
|
|
|
<REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
|
|
|
|
<CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
|
|
|
|
<CUSTOM_ZSTD_LIB>${zstd.lib}</CUSTOM_ZSTD_LIB>
|
|
|
|
<CUSTOM_ZSTD_INCLUDE>${zstd.include}</CUSTOM_ZSTD_INCLUDE>
|
2016-01-14 19:02:34 +00:00
|
|
|
</vars>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>nttest</id>
|
2014-08-14 04:47:20 +00:00
|
|
|
<phase>test</phase>
|
2016-01-14 19:02:34 +00:00
|
|
|
<goals><goal>cmake-test</goal></goals>
|
2014-08-14 04:47:20 +00:00
|
|
|
<configuration>
|
2016-11-28 23:24:44 +00:00
|
|
|
<!-- this should match the xml name without the TEST-part down below -->
|
|
|
|
<testName>nativetask-nttest</testName>
|
2016-01-15 21:53:05 +00:00
|
|
|
<workingDirectory>${project.build.directory}/native/test</workingDirectory>
|
2016-01-14 19:02:34 +00:00
|
|
|
<source>${basedir}/src</source>
|
|
|
|
<binary>${project.build.directory}/native/test/nttest</binary>
|
2016-11-28 23:24:44 +00:00
|
|
|
<args>
|
|
|
|
<arg>--gtest_filter=-Perf.</arg>
|
|
|
|
<arg>--gtest_output=xml:${project.build.directory}/surefire-reports/TEST-nativetask-nttest.xml</arg>
|
|
|
|
</args>
|
|
|
|
<results>${project.build.directory}/surefire-reports</results>
|
2014-08-14 04:47:20 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2014-07-17 17:44:55 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|