From 14d0755d9fe06cf7d5e5748189b3b5f8ac6973ae Mon Sep 17 00:00:00 2001 From: oyo Date: Wed, 27 May 2026 16:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAinterfaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/pom.xml | 30 +++++++++++++++---- template/public_api/dist/pom.xml | 18 ++++------- .../public_api/{api => interfaces}/pom.xml | 2 +- template/public_api/pom.xml | 2 +- 4 files changed, 32 insertions(+), 20 deletions(-) rename template/public_api/{api => interfaces}/pom.xml (91%) diff --git a/template/pom.xml b/template/pom.xml index b08d62d..7c369c0 100644 --- a/template/pom.xml +++ b/template/pom.xml @@ -236,11 +236,6 @@ transmittable-thread-local 2.12.3 - - {{ .groupId }} - {{ .artifactId }}-client - ${revision} - {{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }} org.apache.dubbo @@ -281,6 +276,31 @@ + + org.codehaus.mojo + flatten-maven-plugin + 1.7.3 + + true + resolveCiFriendliesOnly + + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + + org.apache.maven.plugins maven-enforcer-plugin diff --git a/template/public_api/dist/pom.xml b/template/public_api/dist/pom.xml index 5d534f4..049f75d 100644 --- a/template/public_api/dist/pom.xml +++ b/template/public_api/dist/pom.xml @@ -8,12 +8,12 @@ ${revision} ../pom.xml - {{ .artifactId }}-public-api-dist + {{ .artifactId }}-api {{ .groupId }} - {{ .artifactId }}-public-api-api + {{ .artifactId }}-public-interfaces ${revision} @@ -26,13 +26,6 @@ {{ .artifactId }}-api - - org.apache.maven.plugins - maven-jar-plugin - - true - - org.apache.maven.plugins maven-shade-plugin @@ -62,13 +55,12 @@ - - ${project.build.directory}/${project.build.finalName}.jar - false + false + true - \ No newline at end of file + diff --git a/template/public_api/api/pom.xml b/template/public_api/interfaces/pom.xml similarity index 91% rename from template/public_api/api/pom.xml rename to template/public_api/interfaces/pom.xml index e797d21..420e076 100644 --- a/template/public_api/api/pom.xml +++ b/template/public_api/interfaces/pom.xml @@ -8,7 +8,7 @@ ${revision} ../pom.xml - {{ .artifactId }}-public-api-api + {{ .artifactId }}-public-api-interfaces diff --git a/template/public_api/pom.xml b/template/public_api/pom.xml index 8fbeb5f..1c6fc71 100644 --- a/template/public_api/pom.xml +++ b/template/public_api/pom.xml @@ -13,7 +13,7 @@ types - api + interfaces dist