From feb34bb0fe254ff5002d3cc4fa2059e80ebae4ef Mon Sep 17 00:00:00 2001 From: liaozan Date: Sat, 26 Mar 2022 21:59:39 +0800 Subject: [PATCH] chore: subModulePrefix --- .../META-INF/maven/archetype-metadata.xml | 13 ++++++----- .../src/main/resources/application.yaml | 6 ----- .../pom.xml | 6 ++--- .../pom.xml | 4 ++-- .../pom.xml | 2 +- .../pom.xml | 4 ++-- .../pom.xml | 6 ++--- .../pom.xml | 4 ++-- .../src/main/java/Application.java | 0 .../resources/archetype-resources/pom.xml | 22 +++++++++---------- 10 files changed, 31 insertions(+), 36 deletions(-) delete mode 100644 src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/application.yaml rename src/main/resources/archetype-resources/{__rootArtifactId__-api-impl => __subModuleNamePrefix__-api-impl}/pom.xml (78%) rename src/main/resources/archetype-resources/{__rootArtifactId__-api => __subModuleNamePrefix__-api}/pom.xml (85%) rename src/main/resources/archetype-resources/{__rootArtifactId__-common => __subModuleNamePrefix__-common}/pom.xml (90%) rename src/main/resources/archetype-resources/{__rootArtifactId__-dao => __subModuleNamePrefix__-dao}/pom.xml (88%) rename src/main/resources/archetype-resources/{__rootArtifactId__-service => __subModuleNamePrefix__-service}/pom.xml (88%) rename src/main/resources/archetype-resources/{__rootArtifactId__-web => __subModuleNamePrefix__-web}/pom.xml (92%) rename src/main/resources/archetype-resources/{__rootArtifactId__-web => __subModuleNamePrefix__-web}/src/main/java/Application.java (100%) diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml index 4a2ef97..46fdeda 100644 --- a/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -4,6 +4,7 @@ + @@ -18,7 +19,7 @@ - + src/main/java @@ -34,7 +35,7 @@ - + src/main/java @@ -50,7 +51,7 @@ - + src/main/java @@ -66,7 +67,7 @@ - + src/main/java @@ -88,7 +89,7 @@ - + src/main/java @@ -104,7 +105,7 @@ - + src/main/java diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/application.yaml b/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/application.yaml deleted file mode 100644 index d409676..0000000 --- a/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/application.yaml +++ /dev/null @@ -1,6 +0,0 @@ -spring: - application: - name: ${rootArtifactId} -apollo: - bootstrap: - namespaces: application,kp.common.spring.jdbc,kp.common.eureka \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-api-impl/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-api-impl/pom.xml similarity index 78% rename from src/main/resources/archetype-resources/__rootArtifactId__-api-impl/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-api-impl/pom.xml index 5db6c64..f5251ae 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-api-impl/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-api-impl/pom.xml @@ -11,7 +11,7 @@ ${revision} - ${artifactId} + ${subModuleNamePrefix}-api-impl true @@ -20,11 +20,11 @@ ${groupId} - ${rootArtifactId}-api + ${subModuleNamePrefix}-api ${groupId} - ${rootArtifactId}-service + ${subModuleNamePrefix}-service diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-api/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-api/pom.xml similarity index 85% rename from src/main/resources/archetype-resources/__rootArtifactId__-api/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-api/pom.xml index b3850a2..8120ab0 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-api/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-api/pom.xml @@ -11,12 +11,12 @@ ${revision} - ${artifactId} + ${subModuleNamePrefix}-api ${groupId} - ${rootArtifactId}-common + ${subModuleNamePrefix}-common org.springframework.cloud diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-common/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-common/pom.xml similarity index 90% rename from src/main/resources/archetype-resources/__rootArtifactId__-common/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-common/pom.xml index 7dc9ef3..1a7e22a 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-common/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-common/pom.xml @@ -11,7 +11,7 @@ ${revision} - ${artifactId} + ${subModuleNamePrefix}-common diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-dao/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-dao/pom.xml similarity index 88% rename from src/main/resources/archetype-resources/__rootArtifactId__-dao/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-dao/pom.xml index ff6f9bf..2ca72a1 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-dao/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-dao/pom.xml @@ -11,7 +11,7 @@ ${revision} - ${artifactId} + ${subModuleNamePrefix}-dao true @@ -20,7 +20,7 @@ ${groupId} - ${rootArtifactId}-common + ${subModuleNamePrefix}-common com.schbrain.framework diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-service/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-service/pom.xml similarity index 88% rename from src/main/resources/archetype-resources/__rootArtifactId__-service/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-service/pom.xml index 073b427..c5d026e 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-service/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-service/pom.xml @@ -11,7 +11,7 @@ ${revision} - ${artifactId} + ${subModuleNamePrefix}-service true @@ -20,11 +20,11 @@ ${groupId} - ${rootArtifactId}-dao + ${subModuleNamePrefix}-dao ${groupId} - ${rootArtifactId}-api + ${subModuleNamePrefix}-api com.schbrain.framework diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml b/src/main/resources/archetype-resources/__subModuleNamePrefix__-web/pom.xml similarity index 92% rename from src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-web/pom.xml index a09cdb1..2bdcf48 100644 --- a/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml +++ b/src/main/resources/archetype-resources/__subModuleNamePrefix__-web/pom.xml @@ -11,7 +11,7 @@ ${revision} - ${rootArtifactId}-web + ${subModuleNamePrefix}-web true @@ -20,7 +20,7 @@ ${groupId} - ${rootArtifactId}-api-impl + ${subModuleNamePrefix}-api-impl com.schbrain.common diff --git a/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/Application.java b/src/main/resources/archetype-resources/__subModuleNamePrefix__-web/src/main/java/Application.java similarity index 100% rename from src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/Application.java rename to src/main/resources/archetype-resources/__subModuleNamePrefix__-web/src/main/java/Application.java diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml index fbab78e..ff2d115 100644 --- a/src/main/resources/archetype-resources/pom.xml +++ b/src/main/resources/archetype-resources/pom.xml @@ -21,39 +21,39 @@ - ${rootArtifactId}-api - ${rootArtifactId}-api-impl - ${rootArtifactId}-common - ${rootArtifactId}-dao - ${rootArtifactId}-service - ${rootArtifactId}-web + ${subModuleNamePrefix}-api + ${subModuleNamePrefix}-api-impl + ${subModuleNamePrefix}-common + ${subModuleNamePrefix}-dao + ${subModuleNamePrefix}-service + ${subModuleNamePrefix}-web ${groupId} - ${rootArtifactId}-api + ${subModuleNamePrefix}-api ${project.version} ${groupId} - ${rootArtifactId}-api-impl + ${subModuleNamePrefix}-api-impl ${project.version} ${groupId} - ${rootArtifactId}-common + ${subModuleNamePrefix}-common ${project.version} ${groupId} - ${rootArtifactId}-dao + ${subModuleNamePrefix}-dao ${project.version} ${groupId} - ${rootArtifactId}-service + ${subModuleNamePrefix}-service ${project.version} -- GitLab