| <?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. |
| --> |
| |
| <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> |
| |
| <groupId>org.apache</groupId> |
| <artifactId>doris-apache-hdfs-broker</artifactId> |
| <version>3.4.0</version> |
| <packaging>jar</packaging> |
| |
| <name>doris-apache-hdfs-broker</name> |
| <url>https://github.com/apache/incubator-doris</url> |
| |
| <properties> |
| <palo.home>${basedir}/../../</palo.home> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| </properties> |
| |
| <profiles> |
| <!-- for custom internal repository --> |
| <profile> |
| <id>custom-env</id> |
| <activation> |
| <property> |
| <name>env.CUSTOM_MAVEN_REPO</name> |
| </property> |
| </activation> |
| |
| <repositories> |
| <repository> |
| <id>custom-nexus</id> |
| <url>${env.CUSTOM_MAVEN_REPO}</url> |
| </repository> |
| </repositories> |
| |
| <pluginRepositories> |
| <pluginRepository> |
| <id>custom-nexus</id> |
| <url>${env.CUSTOM_MAVEN_REPO}</url> |
| </pluginRepository> |
| </pluginRepositories> |
| </profile> |
| |
| <!-- for general repository --> |
| <profile> |
| <id>general-env</id> |
| <activation> |
| <property> |
| <name>!env.CUSTOM_MAVEN_REPO</name> |
| </property> |
| </activation> |
| |
| <repositories> |
| <!-- for java-cup --> |
| <repository> |
| <id>cloudera-thirdparty</id> |
| <url>https://repository.cloudera.com/content/repositories/third-party/</url> |
| </repository> |
| <!-- for bdb je --> |
| <repository> |
| <id>oracleReleases</id> |
| <url>http://download.oracle.com/maven</url> |
| </repository> |
| </repositories> |
| |
| <pluginRepositories> |
| <!-- for cup-maven-plugin --> |
| <pluginRepository> |
| <id>spring-plugins</id> |
| <url>http://repo.spring.io/plugins-release/</url> |
| </pluginRepository> |
| </pluginRepositories> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli --> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| <version>1.4</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec --> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <version>1.9</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-collections/commons-collections --> |
| <dependency> |
| <groupId>commons-collections</groupId> |
| <artifactId>commons-collections</artifactId> |
| <version>3.2.2</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration --> |
| <dependency> |
| <groupId>commons-configuration</groupId> |
| <artifactId>commons-configuration</artifactId> |
| <version>1.6</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-daemon/commons-daemon --> |
| <dependency> |
| <groupId>commons-daemon</groupId> |
| <artifactId>commons-daemon</artifactId> |
| <version>1.0.13</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>2.4</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-lang/commons-lang --> |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| <version>2.6</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>3.3.2</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/commons-logging/commons-logging --> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <version>1.1.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/com.google.guava/guava --> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>15.0</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-annotations --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-annotations</artifactId> |
| <version>2.7.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-auth --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-auth</artifactId> |
| <version>2.7.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>2.7.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| <version>2.7.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.htrace/htrace-core --> |
| <dependency> |
| <groupId>org.apache.htrace</groupId> |
| <artifactId>htrace-core</artifactId> |
| <version>3.1.0-incubating</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/junit/junit --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.thrift/libthrift --> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>0.9.3</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/log4j/log4j --> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.17</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <version>2.2</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core --> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>2.2</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java --> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>2.5.0</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.6.4</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>1.7.5</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- support jdk9 --> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>1.3.2</version> |
| </dependency> |
| |
| <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-aws --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-aws</artifactId> |
| <version>2.7.3</version> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <finalName>apache_hdfs_broker</finalName> |
| |
| <plugins> |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <version>1.6.0</version> |
| <executions> |
| <execution> |
| <id>mkdir-thrift-dir</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <longModulepath>false</longModulepath> |
| <executable>mkdir</executable> |
| <arguments> |
| <argument>-p</argument> |
| <argument>${basedir}/src/main/resources/thrift</argument> |
| <argument>${basedir}/src/main/thrift</argument> |
| </arguments> |
| <skip>${skip.plugin}</skip> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-thrift</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <executable>cp</executable> |
| <arguments> |
| <argument>${palo.home}/gensrc/thrift/PaloBrokerService.thrift</argument> |
| <argument>${basedir}/src/main/resources/thrift/</argument> |
| </arguments> |
| <skip>${skip.plugin}</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- generate thrfit --> |
| <plugin> |
| <groupId>org.apache.thrift.tools</groupId> |
| <artifactId>maven-thrift-plugin</artifactId> |
| <version>0.1.11</version> |
| <configuration> |
| <thriftExecutable>${env.DORIS_THIRDPARTY}/installed/bin/thrift</thriftExecutable> |
| <thriftSourceRoot>${basedir}/src/main/resources/thrift/</thriftSourceRoot> |
| <outputDirectory>${basedir}/src/main/thrift/</outputDirectory> |
| <skip>${skip.plugin}</skip> |
| </configuration> |
| <executions> |
| <execution> |
| <id>thrift-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- copy all dependency libs to target lib dir --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>3.1.1</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <skip>${skip.plugin}</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <!--set for ecplise lifecycle --> |
| <plugin> |
| <groupId>org.eclipse.m2e</groupId> |
| <artifactId>lifecycle-mapping</artifactId> |
| <version>1.0.0</version> |
| <configuration> |
| <lifecycleMappingMetadata> |
| <pluginExecutions> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>exec-maven-plugin</groupId> |
| <artifactId>org.codehaus.mojo</artifactId> |
| <versionRange>[1.6,)</versionRange> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.thrift.tools</groupId> |
| <artifactId>maven-thrift-plugin</artifactId> |
| <versionRange>[0.1.11,)</versionRange> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <versionRange>[1.6,)</versionRange> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <versionRange>[3.1.1,)</versionRange> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <versionRange>[3.1,)</versionRange> |
| <goals> |
| <goal>compile</goal> |
| <goal>testCompile</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <versionRange>[2.6,)</versionRange> |
| <goals> |
| <goal>resources</goal> |
| <goal>testResources</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| </pluginExecutions> |
| |
| </lifecycleMappingMetadata> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </pluginManagement> |
| |
| </build> |
| </project> |