| <?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> |
| <parent> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-toolchain</artifactId> |
| <version>${revision}</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>hugegraph-loader</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>${project.artifactId}</name> |
| <url>https://github.com/apache/hugegraph-toolchain/tree/master/hugegraph-loader</url> |
| <description> |
| hugegraph-loader is a customizable command line utility for loading small to medium size |
| graph datasets into the HugeGraph database from multiple data sources with various |
| input formats. |
| </description> |
| |
| <properties> |
| <release.name>${project.artifactId}</release.name> |
| <final.name>apache-${release.name}-incubating-${project.version}</final.name> |
| <assembly.dir>${project.basedir}/assembly</assembly.dir> |
| <assembly.descriptor.dir>${assembly.dir}/descriptor</assembly.descriptor.dir> |
| <assembly.static.dir>${assembly.dir}/static</assembly.static.dir> |
| <groovy.all.version>2.4.21</groovy.all.version> |
| <jcommander.version>1.78</jcommander.version> |
| <sfm.csv.version>8.2.1</sfm.csv.version> |
| <apache.httpclient.version>4.5.13</apache.httpclient.version> |
| <xz.version>1.8</xz.version> |
| <mysql.connector.version>8.0.28</mysql.connector.version> |
| <postgres.version>42.4.1</postgres.version> |
| <mssql.jdbc.version>7.2.0.jre8</mssql.jdbc.version> |
| <kafka.testcontainer.version>1.19.0</kafka.testcontainer.version> |
| </properties> |
| |
| <dependencies> |
| <!-- use a fixed jackson for loader --> |
| <dependency> |
| <groupId>com.fasterxml.jackson.module</groupId> |
| <artifactId>jackson-module-jaxb-annotations</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_${scala.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>${spark.scope}</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>jersey-client</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-common</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-container-servlet</artifactId> |
| <groupId>org.glassfish.jersey.containers</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-container-servlet-core</artifactId> |
| <groupId>org.glassfish.jersey.containers</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-hk2</artifactId> |
| <groupId>org.glassfish.jersey.inject</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-server</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>gson</artifactId> |
| <groupId>com.google.code.gson</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <artifactId>gson</artifactId> |
| <groupId>com.google.code.gson</groupId> |
| <version>${gson.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-sql_${scala.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>${spark.scope}</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>antlr4-runtime</artifactId> |
| <groupId>org.antlr</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.ververica</groupId> |
| <artifactId>flink-connector-mysql-cdc</artifactId> |
| <version>${flinkcdc.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-java</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-streaming-java_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-table-api-java-bridge_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-table-planner-blink_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-clients_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-runtime-web_${scala.version}</artifactId> |
| <version>${flink.version}</version> |
| <scope>${flink.scope}</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-client</artifactId> |
| <version>${revision}</version> |
| <exclusions> |
| <!-- Note: jackson version should < 2.13 with scala 2.12 --> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.module</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>error_prone_annotations</artifactId> |
| <groupId>com.google.errorprone</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| <version>${groovy.all.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| <version>${jcommander.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.simpleflatmapper</groupId> |
| <artifactId>sfm-csv</artifactId> |
| <version>${sfm.csv.version}</version> |
| </dependency> |
| |
| <!--hbase --> |
| <dependency> |
| <groupId>org.apache.hbase</groupId> |
| <artifactId>hbase-common</artifactId> |
| <version>${hbase.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.github.stephenc.findbugs</groupId> |
| <artifactId>findbugs-annotations</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>error_prone_annotations</artifactId> |
| <groupId>com.google.errorprone</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hbase</groupId> |
| <artifactId>hbase-client</artifactId> |
| <version>${hbase.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>hadoop-auth</artifactId> |
| <groupId>org.apache.hadoop</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hbase</groupId> |
| <artifactId>hbase-shaded-client-byo-hadoop</artifactId> |
| <!--<artifactId>hbase-client</artifactId>--> |
| <version>${hbase.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-ipc</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hbase</groupId> |
| <artifactId>hbase-mapreduce</artifactId> |
| <version>${hbase.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>hadoop-auth</artifactId> |
| <groupId>org.apache.hadoop</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>javax.ws.rs-api</artifactId> |
| <groupId>javax.ws.rs</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-client</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-common</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-server</artifactId> |
| <groupId>org.glassfish.jersey.core</groupId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-distcp</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- hadoop dependency --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.ws.rs</groupId> |
| <artifactId>jsr311-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-servlet</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-compress</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>guava</artifactId> |
| <groupId>com.google.guava</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs-client</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>okhttp</artifactId> |
| <groupId>com.squareup.okhttp</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- TODO: slim hadoop depedenencies --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapred</artifactId> |
| <version>0.22.0</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-compress</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>${apache.httpclient.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.tukaani</groupId> |
| <artifactId>xz</artifactId> |
| <version>${xz.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>${mysql.connector.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <version>${postgres.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.microsoft.sqlserver</groupId> |
| <artifactId>mssql-jdbc</artifactId> |
| <version>${mssql.jdbc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hive</groupId> |
| <artifactId>hive-exec</artifactId> |
| <version>${hive.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-web</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-registry</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-server-resourcemanager</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.calcite</groupId> |
| <artifactId>calcite-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.calcite</groupId> |
| <artifactId>calcite-druid</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey.contribs</groupId> |
| <artifactId>jersey-guice</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.parquet</groupId> |
| <artifactId>parquet-hadoop-bundle</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.parquet</groupId> |
| <artifactId>parquet-column</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libfb303</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-distcp</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>kafka</artifactId> |
| <version>${kafka.testcontainer.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>unit</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <properties> |
| <test-classes>**/UnitTestSuite.java</test-classes> |
| </properties> |
| </profile> |
| <profile> |
| <id>file</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <properties> |
| <source_type>file</source_type> |
| <store_path>files</store_path> |
| <test-classes>**/FileLoadTest.java</test-classes> |
| </properties> |
| </profile> |
| <profile> |
| <id>hdfs</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <source_type>hdfs</source_type> |
| <!-- same as hdfs://localhost:8020/files --> |
| <store_path>/files</store_path> |
| <test-classes>**/HDFSLoadTest.java</test-classes> |
| </properties> |
| </profile> |
| <profile> |
| <id>jdbc</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <test-classes>**/JDBCLoadTest.java</test-classes> |
| </properties> |
| </profile> |
| <profile> |
| <id>apache-release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <additionalJOptions> |
| <additionalJOption>-Xdoclint:none</additionalJOption> |
| </additionalJOptions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-gpg-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign-artifacts</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <!-- Prevent `gpg` from using pinentry programs --> |
| <gpgArguments> |
| <arg>--pinentry-mode</arg> |
| <arg>loopback</arg> |
| </gpgArguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>kafka</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <source_type>kafka</source_type> |
| <store_path>/files</store_path> |
| <test-classes>**/KafkaLoadTest.java</test-classes> |
| </properties> |
| </profile> |
| </profiles> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.4.1</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <finalName>${final.name}-shaded</finalName> |
| <relocations> |
| <relocation> |
| <pattern>com.google.common.base</pattern> |
| <shadedPattern>shaded.com.google.common.base</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>okio</pattern> |
| <shadedPattern>shaded.okio</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>okhttp3</pattern> |
| <shadedPattern>shaded.okhttp3</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>assembly-hugegraph-loader</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <attach>false</attach> |
| <appendAssemblyId>false</appendAssemblyId> |
| <outputDirectory>${project.basedir}</outputDirectory> |
| <descriptor>${assembly.descriptor.dir}/assembly.xml</descriptor> |
| <finalName>${final.name}</finalName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <tar destfile="${project.basedir}/target/${final.name}.tar.gz" |
| compression="gzip"> |
| <tarfileset dir="${project.basedir}" filemode="755"> |
| <include name="${final.name}/**"/> |
| </tarfileset> |
| </tar> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.8.4</version> |
| <executions> |
| <execution> |
| <id>pre-unit-test</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>post-unit-test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| <configuration> |
| <outputDirectory> |
| ${project.build.directory} |
| </outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>properties-maven-plugin</artifactId> |
| <version>1.0.0</version> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>write-project-properties</goal> |
| </goals> |
| <configuration> |
| <outputFile> |
| ${project.build.testOutputDirectory}/profile.properties |
| </outputFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| <nonFilteredFileExtensions> |
| <nonFilteredFileExtension>parquet</nonFilteredFileExtension> |
| </nonFilteredFileExtensions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <includes> |
| <include>${test-classes}</include> |
| </includes> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| <testResources> |
| <testResource> |
| <directory>src/test/resources/</directory> |
| <filtering>true</filtering> |
| </testResource> |
| </testResources> |
| </build> |
| </project> |