From cbdd65a06f850d0247715defe5e8ad1fb9330ea7 Mon Sep 17 00:00:00 2001 From: V_Galaxy <1904821183@qq.com> Date: Mon, 7 Aug 2023 00:32:23 +0800 Subject: [PATCH] chore: fix pom for submodules in hugegraph-pd --- hugegraph-pd/build.sh | 3 +- hugegraph-pd/hg-pd-client/pom.xml | 5 ++-- hugegraph-pd/hg-pd-clitools/pom.xml | 4 +-- hugegraph-pd/hg-pd-common/pom.xml | 3 +- hugegraph-pd/hg-pd-core/pom.xml | 7 +++-- .../hugegraph/pd/TaskScheduleService.java | 2 -- hugegraph-pd/hg-pd-dist/pom.xml | 2 +- hugegraph-pd/hg-pd-grpc/pom.xml | 4 +-- hugegraph-pd/hg-pd-service/pom.xml | 12 ++++++-- hugegraph-pd/hg-pd-test/pom.xml | 9 ++++-- hugegraph-pd/pom.xml | 29 +++++-------------- hugegraph-pd/settings.xml | 3 +- pom.xml | 2 +- 13 files changed, 43 insertions(+), 42 deletions(-) diff --git a/hugegraph-pd/build.sh b/hugegraph-pd/build.sh index 785db63dc..f77358e1c 100644 --- a/hugegraph-pd/build.sh +++ b/hugegraph-pd/build.sh @@ -20,6 +20,7 @@ export PATH=$MAVEN_3_5_3_BIN:$ORACLEJDK_11_0_7_BIN:$PATH export JAVA_HOME=$ORACLEJDK_11_0_7_HOME export MAVEN_HOME=$MAVEN_3_5_3_HOME +# TODO: remove later readonly REPO_URL=http://maven.baidu-int.com/nexus/content/repositories/Baidu_Local_Snapshots if [ ! -n "$1" ] ;then @@ -35,4 +36,4 @@ ls output echo "mv dist done" echo "show output...." ls output -echo "show output done" \ No newline at end of file +echo "show output done" diff --git a/hugegraph-pd/hg-pd-client/pom.xml b/hugegraph-pd/hg-pd-client/pom.xml index 194e7dde2..c2d67ff92 100644 --- a/hugegraph-pd/hg-pd-client/pom.xml +++ b/hugegraph-pd/hg-pd-client/pom.xml @@ -24,7 +24,7 @@ org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml @@ -66,7 +66,8 @@ org.yaml snakeyaml + 1.28 test - \ No newline at end of file + diff --git a/hugegraph-pd/hg-pd-clitools/pom.xml b/hugegraph-pd/hg-pd-clitools/pom.xml index c0a3009e1..d408b45ba 100644 --- a/hugegraph-pd/hg-pd-clitools/pom.xml +++ b/hugegraph-pd/hg-pd-clitools/pom.xml @@ -20,7 +20,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - hugegraph-pd-root + hugegraph-pd org.apache.hugegraph ${revision} ../pom.xml @@ -71,4 +71,4 @@ - \ No newline at end of file + diff --git a/hugegraph-pd/hg-pd-common/pom.xml b/hugegraph-pd/hg-pd-common/pom.xml index 4580d14c7..199766009 100644 --- a/hugegraph-pd/hg-pd-common/pom.xml +++ b/hugegraph-pd/hg-pd-common/pom.xml @@ -23,7 +23,7 @@ 4.0.0 org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml @@ -43,6 +43,7 @@ org.projectlombok lombok + 1.18.24 org.apache.commons diff --git a/hugegraph-pd/hg-pd-core/pom.xml b/hugegraph-pd/hg-pd-core/pom.xml index a02a4c9de..374d9a93c 100644 --- a/hugegraph-pd/hg-pd-core/pom.xml +++ b/hugegraph-pd/hg-pd-core/pom.xml @@ -23,7 +23,7 @@ org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml @@ -58,6 +58,7 @@ org.springframework spring-context + 5.3.20 org.apache.hugegraph @@ -66,10 +67,12 @@ org.springframework.boot spring-boot + 2.5.14 org.projectlombok lombok + 1.18.24 org.apache.commons @@ -88,4 +91,4 @@ ${revision} - \ No newline at end of file + diff --git a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/TaskScheduleService.java b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/TaskScheduleService.java index ba68aab9b..5fd1005b1 100644 --- a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/TaskScheduleService.java +++ b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/TaskScheduleService.java @@ -710,8 +710,6 @@ public class TaskScheduleService { /** * 判断是否能把一个store的分区全部迁出,给出判断结果和迁移方案 - * - * @author tianxiaohui@baidu.com */ public Map canAllPartitionsMovedOut(Metapb.Store sourceStore) throws PDException { diff --git a/hugegraph-pd/hg-pd-dist/pom.xml b/hugegraph-pd/hg-pd-dist/pom.xml index b505e54d9..e2d1da0a7 100644 --- a/hugegraph-pd/hg-pd-dist/pom.xml +++ b/hugegraph-pd/hg-pd-dist/pom.xml @@ -20,7 +20,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - hugegraph-pd-root + hugegraph-pd org.apache.hugegraph ${revision} ../pom.xml diff --git a/hugegraph-pd/hg-pd-grpc/pom.xml b/hugegraph-pd/hg-pd-grpc/pom.xml index 0c5cff10d..538647a7a 100644 --- a/hugegraph-pd/hg-pd-grpc/pom.xml +++ b/hugegraph-pd/hg-pd-grpc/pom.xml @@ -24,7 +24,7 @@ org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml @@ -135,4 +135,4 @@ - \ No newline at end of file + diff --git a/hugegraph-pd/hg-pd-service/pom.xml b/hugegraph-pd/hg-pd-service/pom.xml index 4a027fbbc..e7f51323c 100644 --- a/hugegraph-pd/hg-pd-service/pom.xml +++ b/hugegraph-pd/hg-pd-service/pom.xml @@ -23,12 +23,12 @@ org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml - hugegraph-pd + hg-pd-service 0.5.10 @@ -65,6 +65,7 @@ org.springframework.boot spring-boot-starter-web + 2.5.14 @@ -82,18 +83,22 @@ org.springframework.boot spring-boot-starter-actuator + 2.5.14 io.micrometer micrometer-registry-prometheus + 1.7.12 org.springframework.boot spring-boot-starter-jetty + 2.5.14 org.springframework.boot spring-boot-starter-log4j2 + 2.5.14 com.lmax @@ -103,6 +108,7 @@ org.projectlombok lombok + 1.18.24 @@ -142,4 +148,4 @@ - \ No newline at end of file + diff --git a/hugegraph-pd/hg-pd-test/pom.xml b/hugegraph-pd/hg-pd-test/pom.xml index 0371e8163..7924ca4c0 100644 --- a/hugegraph-pd/hg-pd-test/pom.xml +++ b/hugegraph-pd/hg-pd-test/pom.xml @@ -21,7 +21,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.hugegraph - hugegraph-pd-root + hugegraph-pd ${revision} ../pom.xml @@ -85,15 +85,17 @@ org.projectlombok lombok - ${lombok.version} + 1.18.24 org.springframework spring-context-support + 5.3.20 org.springframework spring-test + 5.3.20 test @@ -164,6 +166,7 @@ org.springframework.boot spring-boot-starter-test + 2.5.14 org.springframework.boot @@ -364,4 +367,4 @@ - \ No newline at end of file + diff --git a/hugegraph-pd/pom.xml b/hugegraph-pd/pom.xml index 4d429c430..790078b78 100644 --- a/hugegraph-pd/pom.xml +++ b/hugegraph-pd/pom.xml @@ -20,17 +20,15 @@ xmlns="http://maven.apache.org/POM/4.0.0" 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-pd-root + hugegraph-pd ${revision} pom - - org.springframework.boot - spring-boot-starter-parent - 2.5.14 + org.apache.hugegraph + hugegraph + ${revision} + ../pom.xml @@ -46,7 +44,6 @@ - 1.5.0 11 11 2.17.0 @@ -76,21 +73,11 @@ junit junit + 4.13.2 test - - - Baidu_Local - http://maven.baidu-int.com/nexus/content/repositories/Baidu_Local - - - Baidu_Local_Snapshots - http://maven.baidu-int.com/nexus/content/repositories/Baidu_Local_Snapshots - - - @@ -148,7 +135,7 @@ *.tar.gz .flattened-pom.xml - + false @@ -282,4 +269,4 @@ - \ No newline at end of file + diff --git a/hugegraph-pd/settings.xml b/hugegraph-pd/settings.xml index dc29a27b7..9b2680344 100644 --- a/hugegraph-pd/settings.xml +++ b/hugegraph-pd/settings.xml @@ -38,6 +38,7 @@ + baidu @@ -129,4 +130,4 @@ baidu - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index 317023190..5735ede23 100644 --- a/pom.xml +++ b/pom.xml @@ -95,7 +95,7 @@ hugegraph-server - + hugegraph-pd