From 025c5ab86be0bb4f3a0c4c1d1d8834580715388a Mon Sep 17 00:00:00 2001 From: imbajin Date: Tue, 26 Apr 2022 18:44:59 +0800 Subject: [PATCH] refact: init toolchain pom for all modules refer maven guid to unify all submodule with a ${revision} property to avoid useless version change --- hugegraph-client/pom.xml | 42 +- hugegraph-hubble/hubble-be/pom.xml | 37 +- hugegraph-hubble/hubble-dist/pom.xml | 9 +- hugegraph-hubble/pom.xml | 30 +- hugegraph-loader/pom.xml | 81 +--- hugegraph-tools/pom.xml | 50 +-- pom.xml | 552 +++++++++++++++++++++++++++ 7 files changed, 614 insertions(+), 187 deletions(-) create mode 100644 pom.xml diff --git a/hugegraph-client/pom.xml b/hugegraph-client/pom.xml index 25d2a90b3..409096e5a 100644 --- a/hugegraph-client/pom.xml +++ b/hugegraph-client/pom.xml @@ -2,57 +2,31 @@ 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"> 4.0.0 + + org.apache.hugegraph + hugegraph-toolchain + ${revision} + ../pom.xml + - com.baidu.hugegraph hugegraph-client - 2.1.0 jar - hugegraph-client - https://github.com/hugegraph/hugegraph-client + ${artifactId}} + https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-client hugegraph-client is a Java-written client of HugeGraph, providing operations of graph, schema, gremlin, variables and traversals etc. - - org.sonatype.oss - oss-parent - 7 - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - https://github.com/hugegraph/hugegraph-client https://github.com/hugegraph/hugegraph-client https://github.com/hugegraph/hugegraph-client - - - lizhangmei - javaloveme@gmail.com - - - zhoney - zhangyi89817@126.com - - - liningrui - liningrui@vip.qq.com - - - UTF-8 - 1.8 - 1.8 2.1.0 3.0.3 2.8.47 diff --git a/hugegraph-hubble/hubble-be/pom.xml b/hugegraph-hubble/hubble-be/pom.xml index 99f79351e..075689e18 100644 --- a/hugegraph-hubble/hubble-be/pom.xml +++ b/hugegraph-hubble/hubble-be/pom.xml @@ -3,17 +3,15 @@ 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"> + org.apache.hugegraph hugegraph-hubble - com.baidu.hugegraph - 1.6.0 + ${revision} 4.0.0 hubble-be - UTF-8 - 1.8 true localhost 36320 @@ -124,37 +122,6 @@ - - org.codehaus.mojo - license-maven-plugin - 1.19 - - - default-cli - - - true - - /org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl - - The Apache Software License, Version 2.0|The Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache Public License 2.0 - The Apache Software License, Version 2.0|Apache 2 - The Apache Software License, Version 2.0|Apache 2.0 - The Apache Software License, Version 2.0|Apache-2.0 - The Apache Software License, Version 2.0|Apache License 2.0 - The Apache Software License, Version 2.0|Apache License, version 2.0 - 3-Clause BSD License|BSD 3-clause - 3-Clause BSD License|BSD 3-Clause - Eclipse Public License v1.0|Eclipse Public License 1.0 - Eclipse Public License v1.0|Eclipse Public License - v 1.0 - The MIT License|MIT License - - - - - org.apache.hadoop hadoop-common @@ -402,37 +380,6 @@ - - org.codehaus.mojo - license-maven-plugin - 1.19 - - - default-cli - - - true - - /org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl - - The Apache Software License, Version 2.0|The Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache Public License 2.0 - The Apache Software License, Version 2.0|Apache 2 - The Apache Software License, Version 2.0|Apache 2.0 - The Apache Software License, Version 2.0|Apache-2.0 - The Apache Software License, Version 2.0|Apache License 2.0 - The Apache Software License, Version 2.0|Apache License, version 2.0 - 3-Clause BSD License|BSD 3-clause - 3-Clause BSD License|BSD 3-Clause - Eclipse Public License v1.0|Eclipse Public License 1.0 - Eclipse Public License v1.0|Eclipse Public License - v 1.0 - The MIT License|MIT License - - - - - maven-compiler-plugin 3.1 diff --git a/hugegraph-tools/pom.xml b/hugegraph-tools/pom.xml index 45a3038ae..6b6c6acc7 100644 --- a/hugegraph-tools/pom.xml +++ b/hugegraph-tools/pom.xml @@ -2,23 +2,26 @@ 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"> 4.0.0 + + org.apache.hugegraph + hugegraph-toolchain + ${revision} + ../pom.xml + - com.baidu.xbu-data hugegraph-tools - 1.6.0 jar - http://maven.apache.org - ${project.artifactId} + + https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-tools + ${artifactId} - hugegraph-tools + ${artifactId} ${release.name}-${project.version} ${project.basedir}/assembly ${assembly.dir}/descriptor bash 4.12 - 1.8 - UTF-8 yyyy-MM-dd HH:mm:ssZ 2.0.1 1.72 @@ -153,37 +156,6 @@ output/classes - - org.codehaus.mojo - license-maven-plugin - 1.19 - - - default-cli - - - true - - /org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl - - The Apache Software License, Version 2.0|The Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache License, Version 2.0 - The Apache Software License, Version 2.0|Apache Public License 2.0 - The Apache Software License, Version 2.0|Apache 2 - The Apache Software License, Version 2.0|Apache 2.0 - The Apache Software License, Version 2.0|Apache-2.0 - The Apache Software License, Version 2.0|Apache License 2.0 - The Apache Software License, Version 2.0|Apache License, version 2.0 - 3-Clause BSD License|BSD 3-clause - 3-Clause BSD License|BSD 3-Clause - Eclipse Public License v1.0|Eclipse Public License 1.0 - Eclipse Public License v1.0|Eclipse Public License - v 1.0 - The MIT License|MIT License - - - - - org.apache.maven.plugins maven-compiler-plugin @@ -191,7 +163,7 @@ ${java.version} ${java.version} - ${source.encoding} + ${project.build.sourceEncoding} diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..4978cd12e --- /dev/null +++ b/pom.xml @@ -0,0 +1,552 @@ + + + 4.0.0 + + org.apache.hugegraph + hugegraph-toolchain + ${revision} + pom + + ${project.artifactId} + https://github.com/apache/incubator-hugegraph-toolchain + + hugegraph-toolchain is the integration project of a series of utilities for HugeGraph, it includes 4 main modules (loader/hubble/tools/client) + + + + org.sonatype.oss + oss-parent + 7 + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + https://github.com/hugegraph/hugegraph-toolchain + https://github.com/hugegraph/hugegraph-toolchain + https://github.com/hugegraph/hugegraph-toolchain + + + + + hugegraph-client + hugegraph-hubble + hugegraph-loader + hugegraph-tools + + + + 1.0.0 + ${project.artifactId} + ${release.name}-${project.version} + ${project.basedir}/assembly + ${assembly.dir}/descriptor + ${assembly.dir}/static + bash + UTF-8 + 1.8 + 1.8 + 1.8 + + + + + commons-io + commons-io + 2.7 + + + org.apache.commons + commons-lang3 + 3.9 + + + org.codehaus.groovy + groovy-all + 2.4.6 + + + com.beust + jcommander + 1.78 + + + org.simpleflatmapper + sfm-csv + 8.2.1 + + + com.google.guava + guava + 29.0-jre + + + + + org.apache.hadoop + hadoop-mapred + 0.22.0 + test + + + org.apache.hadoop + hadoop-common + + + + + + org.apache.commons + commons-compress + 1.21 + + + org.apache.httpcomponents + httpclient + 4.5.13 + + + org.tukaani + xz + 1.8 + + + mysql + mysql-connector-java + 6.0.6 + + + org.postgresql + postgresql + 42.3.3 + + + com.microsoft.sqlserver + mssql-jdbc + 7.2.0.jre8 + + + com.oracle + ojdbc8 + 12.2.0.1 + + + org.apache.hive + hive-exec + 3.1.2 + + + log4j + log4j + + + org.slf4j + slf4j-api + + + org.slf4j + slf4j-log4j12 + + + org.apache.logging.log4j + log4j-slf4j-impl + + + org.apache.logging.log4j + log4j-web + + + org.apache.hadoop + hadoop-hdfs + + + org.apache.hadoop + hadoop-yarn-registry + + + org.apache.hadoop + hadoop-yarn-server-resourcemanager + + + org.apache.calcite.avatica + avatica + + + org.apache.calcite + calcite-core + + + org.apache.calcite + calcite-druid + + + org.codehaus.groovy + groovy-all + + + com.sun.jersey + jersey-core + + + com.sun.jersey + jersey-client + + + com.sun.jersey + jersey-server + + + com.sun.jersey + jersey-json + + + com.sun.jersey.contribs + jersey-guice + + + org.apache.parquet + parquet-hadoop-bundle + + + org.apache.parquet + parquet-column + + + org.apache.thrift + libfb303 + + + com.fasterxml.jackson.core + * + + + + + + + + unit + + true + + + **/UnitTestSuite.java + + + + file + + true + + + file + files + **/FileLoadTest.java + + + + hdfs + + false + + + hdfs + + /files + **/HDFSLoadTest.java + + + + jdbc + + false + + + **/JDBCLoadTest.java + + + + release + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + -Xdoclint:none + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + --pinentry-mode + loopback + + + + + + + + + + + + org.codehaus.mojo + license-maven-plugin + 1.19 + + + default-cli + + + true + + /org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl + + The Apache Software License, Version 2.0|The Apache License, Version 2.0 + The Apache Software License, Version 2.0|Apache License, Version 2.0 + The Apache Software License, Version 2.0|Apache Public License 2.0 + The Apache Software License, Version 2.0|Apache 2 + The Apache Software License, Version 2.0|Apache 2.0 + The Apache Software License, Version 2.0|Apache-2.0 + The Apache Software License, Version 2.0|Apache License 2.0 + The Apache Software License, Version 2.0|Apache License, version 2.0 + 3-Clause BSD License|BSD 3-clause + 3-Clause BSD License|BSD 3-Clause + Eclipse Public License v1.0|Eclipse Public License 1.0 + Eclipse Public License v1.0|Eclipse Public License - v 1.0 + The MIT License|MIT License + + + + + + + maven-compiler-plugin + 3.1 + + ${compiler.source} + ${compiler.target} + + 500 + + + -Xlint:unchecked + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.4 + + + assembly-hugegraph-loader + package + + single + + + false + false + ${project.basedir} + ${assembly.descriptor.dir}/assembly.xml + ${final.name} + + + + + + maven-antrun-plugin + + + package + + run + + + + + tar -zcvf \ + ${project.basedir}/${final.name}.tar.gz ${final.name} || exit 1 + rm -f ${project.basedir}/dist.sh + echo -n "hugegraph-loader tar.gz available at: " + echo "${project.basedir}/${final.name}.tar.gz" + + + + + + + + + + + maven-clean-plugin + 3.0.0 + + + + ${project.basedir} + + *.tar.gz + ${final.name}/** + + false + + + ${final.name} + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.4 + + + pre-unit-test + + prepare-agent + + + + post-unit-test + test + + report + + + + ${project.build.directory} + + + + + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + generate-resources + + write-project-properties + + + + ${project.build.testOutputDirectory}/profile.properties + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 2.7 + + UTF-8 + + parquet + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.20 + + + ${test-classes} + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.1.0 + + checkstyle.xml + UTF-8 + true + true + false + false + + + + validate + validate + + check + + + + + + + + + src/test/resources/ + true + + + +