| <?xml version="1.0" encoding="UTF-8"?> |
| <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-flink</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <properties> |
| <scala.version>2.12</scala.version> |
| <flink.version>1.11.2</flink.version> |
| <libthrift.version>0.13.0</libthrift.version> |
| <arrow.version>5.0.0</arrow.version> |
| <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| <maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version> |
| <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <doris.home>${basedir}/../../</doris.home> |
| <doris.thirdparty>${basedir}/../../thirdparty</doris.thirdparty> |
| </properties> |
| |
| <profiles> |
| <profile> |
| <id>thirdparty</id> |
| <activation> |
| <property> |
| <name>env.DORIS_THIRDPARTY</name> |
| </property> |
| </activation> |
| <properties> |
| <doris.thirdparty>${env.DORIS_THIRDPARTY}</doris.thirdparty> |
| </properties> |
| </profile> |
| <!-- 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> |
| <repository> |
| <id>central</id> |
| <name>central maven repo https</name> |
| <url>https://repo.maven.apache.org/maven2</url> |
| </repository> |
| </repositories> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-java</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-streaming-java_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-clients_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <!-- flink table --> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-table-common</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-table-api-java-bridge_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-table-planner-blink_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${libthrift.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>httpclient</artifactId> |
| <groupId>org.apache.httpcomponents</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>httpcore</artifactId> |
| <groupId>org.apache.httpcomponents</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.13</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-vector</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-memory-netty</artifactId> |
| <version>${arrow.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.25</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>1.7.25</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.17</version> |
| </dependency> |
| <!--Test--> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| <version>1.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-scala_${scala.version}</artifactId> |
| <version>1.4.7</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>hamcrest-core</artifactId> |
| <groupId>org.hamcrest</groupId> |
| </exclusion> |
| </exclusions> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.11</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>hamcrest-core</artifactId> |
| <groupId>org.hamcrest</groupId> |
| </exclusion> |
| </exclusions> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.thrift.tools</groupId> |
| <artifactId>maven-thrift-plugin</artifactId> |
| <version>0.1.11</version> |
| <configuration> |
| <thriftExecutable>${doris.thirdparty}/installed/bin/thrift</thriftExecutable> |
| <generator>java:fullcamel</generator> |
| </configuration> |
| <executions> |
| <execution> |
| <id>thrift-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <version>3.2.1</version> |
| <executions> |
| <execution> |
| <id>scala-compile-first</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-test-compile</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <args> |
| <arg>-feature</arg> |
| </args> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.2.1</version> |
| <configuration> |
| <artifactSet> |
| <excludes> |
| <exclude>com.google.code.findbugs:*</exclude> |
| <exclude>org.slf4j:*</exclude> |
| </excludes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.arrow</pattern> |
| <shadedPattern>org.apache.doris.shaded.org.apache.arrow</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>org.apache.doris.shaded.io.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml.jackson</pattern> |
| <shadedPattern>org.apache.doris.shaded.com.fasterxml.jackson</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.commons.codec</pattern> |
| <shadedPattern>org.apache.doris.shaded.org.apache.commons.codec</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.google.flatbuffers</pattern> |
| <shadedPattern>org.apache.doris.shaded.com.google.flatbuffers</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>org.apache.doris.shaded.org.apache.thrift</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.7.8</version> |
| <configuration> |
| <excludes> |
| <exclude>**/thrift/**</exclude></excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>prepare-agent</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>check</id> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| <configuration> |
| <source>8</source> |
| <target>8</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>${maven-javadoc-plugin.version}</version> |
| <configuration> |
| <source>8</source> |
| <failOnError>false</failOnError> |
| <aggregate>true</aggregate> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>${maven-source-plugin.version}</version> |
| <configuration> |
| <attach>true</attach> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>compile</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |