2018-03-15 12:23:33 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
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 03:29:44 -04:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2018-03-15 12:23:33 -04: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.
|
|
|
|
-->
|
|
|
|
<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
|
2019-05-27 02:24:59 -04:00
|
|
|
https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2018-03-15 12:23:33 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2018-04-05 14:24:39 -04:00
|
|
|
<artifactId>hadoop-hdds</artifactId>
|
2019-03-14 06:59:40 -04:00
|
|
|
<version>0.5.0-SNAPSHOT</version>
|
2018-03-15 12:23:33 -04:00
|
|
|
</parent>
|
2018-04-05 14:24:39 -04:00
|
|
|
<artifactId>hadoop-hdds-common</artifactId>
|
2019-03-14 06:59:40 -04:00
|
|
|
<version>0.5.0-SNAPSHOT</version>
|
2018-04-05 14:24:39 -04:00
|
|
|
<description>Apache Hadoop Distributed Data Store Common</description>
|
2018-05-10 14:44:14 -04:00
|
|
|
<name>Apache Hadoop HDDS Common</name>
|
2018-03-15 12:23:33 -04:00
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<properties>
|
2019-03-14 06:59:40 -04:00
|
|
|
<hdds.version>0.5.0-SNAPSHOT</hdds.version>
|
2018-07-03 14:38:14 -04:00
|
|
|
<log4j2.version>2.11.0</log4j2.version>
|
|
|
|
<disruptor.version>3.4.2</disruptor.version>
|
2018-08-09 05:06:03 -04:00
|
|
|
<declared.hdds.version>${hdds.version}</declared.hdds.version>
|
2018-03-15 12:23:33 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
2019-05-02 06:14:43 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-hdds-config</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2018-11-06 07:26:43 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.annotation</groupId>
|
|
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
</dependency>
|
|
|
|
|
2018-03-15 12:23:33 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.fusesource.leveldbjni</groupId>
|
|
|
|
<artifactId>leveldbjni-all</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<artifactId>ratis-server</artifactId>
|
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
|
|
<artifactId>metrics-core</artifactId>
|
|
|
|
</exclusion>
|
2018-09-25 17:19:14 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
|
|
</exclusion>
|
2018-03-15 12:23:33 -04:00
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<artifactId>ratis-netty</artifactId>
|
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<artifactId>ratis-grpc</artifactId>
|
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
</dependency>
|
2018-05-22 19:51:43 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.errorprone</groupId>
|
|
|
|
<artifactId>error_prone_annotations</artifactId>
|
|
|
|
<version>2.2.0</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2018-03-15 12:23:33 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.rocksdb</groupId>
|
|
|
|
<artifactId>rocksdbjni</artifactId>
|
2019-06-18 14:13:13 -04:00
|
|
|
<version>6.0.1</version>
|
2018-03-15 12:23:33 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
|
|
|
|
2018-07-03 14:38:14 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
|
<version>${log4j2.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
|
<version>${log4j2.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.lmax</groupId>
|
|
|
|
<artifactId>disruptor</artifactId>
|
|
|
|
<version>${disruptor.version}</version>
|
|
|
|
</dependency>
|
2018-09-12 13:38:36 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
|
<version>2.6.0</version>
|
|
|
|
</dependency>
|
2018-10-01 14:03:27 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcpkix-jdk15on</artifactId>
|
2019-01-10 12:19:36 -05:00
|
|
|
<version>${bouncycastle.version}</version>
|
2018-10-01 14:03:27 -04:00
|
|
|
</dependency>
|
2018-12-23 17:57:16 -05:00
|
|
|
<!-- https://mvnrepository.com/artifact/commons-validator/commons-validator -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-validator</groupId>
|
|
|
|
<artifactId>commons-validator</artifactId>
|
|
|
|
<version>1.6</version>
|
|
|
|
</dependency>
|
2019-02-05 10:11:16 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
</dependency>
|
2019-02-11 06:11:54 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.jaegertracing</groupId>
|
|
|
|
<artifactId>jaeger-client</artifactId>
|
|
|
|
<version>0.33.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.opentracing</groupId>
|
|
|
|
<artifactId>opentracing-util</artifactId>
|
|
|
|
<version>0.31.0</version>
|
|
|
|
</dependency>
|
2019-04-18 19:53:25 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
<version>1.16</version>
|
|
|
|
</dependency>
|
2018-03-15 12:23:33 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2018-08-09 05:06:03 -04:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
<excludes>
|
|
|
|
<exclude>hdds-version-info.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>hdds-version-info.properties</include>
|
|
|
|
</includes>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2018-05-11 14:08:45 -04:00
|
|
|
<extensions>
|
|
|
|
<extension>
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
|
|
<version>${os-maven-plugin.version}</version>
|
|
|
|
</extension>
|
|
|
|
</extensions>
|
2018-03-15 12:23:33 -04:00
|
|
|
<plugins>
|
2018-05-11 14:08:45 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
<version>${protobuf-maven-plugin.version}</version>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<protocArtifact>
|
|
|
|
com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier}
|
|
|
|
</protocArtifact>
|
|
|
|
<protoSourceRoot>${basedir}/src/main/proto/</protoSourceRoot>
|
|
|
|
<includes>
|
|
|
|
<include>DatanodeContainerProtocol.proto</include>
|
|
|
|
</includes>
|
|
|
|
<outputDirectory>target/generated-sources/java</outputDirectory>
|
|
|
|
<clearOutputDirectory>false</clearOutputDirectory>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile-protoc</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
<goal>test-compile</goal>
|
2018-05-22 19:51:43 -04:00
|
|
|
<goal>compile-custom</goal>
|
|
|
|
<goal>test-compile-custom</goal>
|
2018-05-11 14:08:45 -04:00
|
|
|
</goals>
|
2018-05-22 19:51:43 -04:00
|
|
|
<configuration>
|
|
|
|
<pluginId>grpc-java</pluginId>
|
|
|
|
<pluginArtifact>
|
|
|
|
io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
|
|
|
|
</pluginArtifact>
|
|
|
|
</configuration>
|
2018-05-11 14:08:45 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
2018-10-11 19:59:59 -04:00
|
|
|
<replace token="com.google.protobuf" value="org.apache.ratis.thirdparty.com.google.protobuf"
|
2018-05-11 14:08:45 -04:00
|
|
|
dir="target/generated-sources/java/org/apache/hadoop/hdds/protocol/datanode/proto">
|
|
|
|
</replace>
|
2018-10-11 19:59:59 -04:00
|
|
|
<replace token="io.grpc" value="org.apache.ratis.thirdparty.io.grpc"
|
2018-05-22 19:51:43 -04:00
|
|
|
dir="target/generated-sources/java/org/apache/hadoop/hdds/protocol/datanode/proto">
|
|
|
|
</replace>
|
2018-05-11 14:08:45 -04:00
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2018-03-15 12:23:33 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-maven-plugins</artifactId>
|
|
|
|
<executions>
|
2018-08-09 05:06:03 -04:00
|
|
|
<execution>
|
|
|
|
<id>version-info</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>version-info</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<source>
|
|
|
|
<directory>${basedir}/../</directory>
|
|
|
|
<includes>
|
|
|
|
<include>*/src/main/java/**/*.java</include>
|
|
|
|
<include>*/src/main/proto/*.proto</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2018-03-15 12:23:33 -04:00
|
|
|
<execution>
|
|
|
|
<id>compile-protoc</id>
|
|
|
|
<goals>
|
|
|
|
<goal>protoc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<protocVersion>${protobuf.version}</protocVersion>
|
|
|
|
<protocCommand>${protoc.path}</protocCommand>
|
|
|
|
<imports>
|
|
|
|
<param>${basedir}/src/main/proto</param>
|
|
|
|
</imports>
|
|
|
|
<source>
|
|
|
|
<directory>${basedir}/src/main/proto</directory>
|
|
|
|
<includes>
|
|
|
|
<include>StorageContainerLocationProtocol.proto</include>
|
2018-04-05 14:24:39 -04:00
|
|
|
<include>hdds.proto</include>
|
2018-03-15 12:23:33 -04:00
|
|
|
<include>ScmBlockLocationProtocol.proto</include>
|
2018-10-29 01:44:41 -04:00
|
|
|
<include>SCMSecurityProtocol.proto</include>
|
2018-03-15 12:23:33 -04:00
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|