From 301c959082d7259a5a7c751cb4e77e7883e6f249 Mon Sep 17 00:00:00 2001
From: gaoqr <13665037151@163.com>
Date: Wed, 19 Jun 2024 14:38:04 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=BD=99=E5=BE=AE=E6=9C=8D=E5=8A=A1in?=
=?UTF-8?q?fra=E3=80=81plan=E3=80=81report=E6=89=93=E5=8C=85=E6=96=B9?=
=?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9=EF=BC=9A=201=E3=80=81=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E6=A0=B9=E6=8D=AEprofile=E6=89=93=E5=8C=85=E4=B8=8D?=
=?UTF-8?q?=E5=90=8C=E9=85=8D=E7=BD=AE=E5=9C=A8jar=E5=A4=96=EF=BC=9B=202?=
=?UTF-8?q?=E3=80=81=E4=BE=9D=E8=B5=96lib=E6=89=93=E5=8C=85=E5=9C=A8jar?=
=?UTF-8?q?=E5=A4=96=EF=BC=9B=203=E3=80=81=E5=A2=9E=E5=8A=A0test=E7=9B=B8?=
=?UTF-8?q?=E5=85=B3=E9=85=8D=E7=BD=AE=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cf-module-infra/cf-module-infra-biz/pom.xml | 40 +++++++++++++++++++
.../src/main/build/assembly.xml | 39 ++++++++++++++++++
.../src/main/resources/application-test.yaml | 4 ++
.../src/main/resources/bootstrap-test.yaml | 23 +++++++++++
.../cf-module-prod-plan-biz/pom.xml | 40 +++++++++++++++++++
.../src/main/build/assembly.xml | 39 ++++++++++++++++++
.../src/main/resources/application-test.yaml | 4 ++
.../src/main/resources/bootstrap-test.yaml | 23 +++++++++++
cf-module-report/cf-module-report-biz/pom.xml | 40 +++++++++++++++++++
.../src/main/build/assembly.xml | 39 ++++++++++++++++++
.../src/main/resources/application-test.yaml | 4 ++
.../src/main/resources/bootstrap-test.yaml | 23 +++++++++++
12 files changed, 318 insertions(+)
create mode 100644 cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml
create mode 100644 cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml
create mode 100644 cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml
create mode 100644 cf-module-prod-plan/cf-module-prod-plan-biz/src/main/build/assembly.xml
create mode 100644 cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/application-test.yaml
create mode 100644 cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/bootstrap-test.yaml
create mode 100644 cf-module-report/cf-module-report-biz/src/main/build/assembly.xml
create mode 100644 cf-module-report/cf-module-report-biz/src/main/resources/application-test.yaml
create mode 100644 cf-module-report/cf-module-report-biz/src/main/resources/bootstrap-test.yaml
diff --git a/cf-module-infra/cf-module-infra-biz/pom.xml b/cf-module-infra/cf-module-infra-biz/pom.xml
index 3f53410dc..c8ac36b85 100644
--- a/cf-module-infra/cf-module-infra-biz/pom.xml
+++ b/cf-module-infra/cf-module-infra-biz/pom.xml
@@ -169,6 +169,46 @@
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ ${maven.dependency.plugin.version}
+
+
+ prepare-package
+
+ copy-dependencies
+
+
+
+ target/lib
+
+ com.cf.imes
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+ false
+
+
+ src/main/build/assembly.xml
+
+
+
+
+ bundle
+ package
+
+ single
+
+
+
+
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml b/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml
new file mode 100644
index 000000000..6569531ff
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml
@@ -0,0 +1,39 @@
+
+ bundle
+
+ tar.gz
+
+ false
+
+
+
+
+ ${basedir}/src/main/resources
+ config
+
+ application-${profileActive}.yaml
+ bootstrap-${profileActive}.yaml
+ bootstrap.yaml
+
+
+
+
+
+ ${basedir}/target/lib
+
+ *.jar
+
+
+ lib
+
+
+
+ ${project.build.directory}
+ /
+
+ ${project.artifactId}.jar
+
+
+
+
+
\ No newline at end of file
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml b/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml
new file mode 100644
index 000000000..110cf76c9
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml
@@ -0,0 +1,4 @@
+spring:
+ main:
+ allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
+ allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
\ No newline at end of file
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml b/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml
new file mode 100644
index 000000000..90fc424cd
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 192.168.1.204:8848
+ discovery:
+ namespace: imes-test # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 192.168.1.204:8848 # Nacos 服务器地址
+ namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
\ No newline at end of file
diff --git a/cf-module-prod-plan/cf-module-prod-plan-biz/pom.xml b/cf-module-prod-plan/cf-module-prod-plan-biz/pom.xml
index a62954849..27daed935 100644
--- a/cf-module-prod-plan/cf-module-prod-plan-biz/pom.xml
+++ b/cf-module-prod-plan/cf-module-prod-plan-biz/pom.xml
@@ -146,6 +146,46 @@
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ ${maven.dependency.plugin.version}
+
+
+ prepare-package
+
+ copy-dependencies
+
+
+
+ target/lib
+
+ com.cf.imes
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+ false
+
+
+ src/main/build/assembly.xml
+
+
+
+
+ bundle
+ package
+
+ single
+
+
+
+
diff --git a/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/build/assembly.xml b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/build/assembly.xml
new file mode 100644
index 000000000..6569531ff
--- /dev/null
+++ b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/build/assembly.xml
@@ -0,0 +1,39 @@
+
+ bundle
+
+ tar.gz
+
+ false
+
+
+
+
+ ${basedir}/src/main/resources
+ config
+
+ application-${profileActive}.yaml
+ bootstrap-${profileActive}.yaml
+ bootstrap.yaml
+
+
+
+
+
+ ${basedir}/target/lib
+
+ *.jar
+
+
+ lib
+
+
+
+ ${project.build.directory}
+ /
+
+ ${project.artifactId}.jar
+
+
+
+
+
\ No newline at end of file
diff --git a/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/application-test.yaml b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/application-test.yaml
new file mode 100644
index 000000000..110cf76c9
--- /dev/null
+++ b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/application-test.yaml
@@ -0,0 +1,4 @@
+spring:
+ main:
+ allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
+ allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
\ No newline at end of file
diff --git a/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/bootstrap-test.yaml b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/bootstrap-test.yaml
new file mode 100644
index 000000000..90fc424cd
--- /dev/null
+++ b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/bootstrap-test.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 192.168.1.204:8848
+ discovery:
+ namespace: imes-test # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 192.168.1.204:8848 # Nacos 服务器地址
+ namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
\ No newline at end of file
diff --git a/cf-module-report/cf-module-report-biz/pom.xml b/cf-module-report/cf-module-report-biz/pom.xml
index c753997a8..b783e6727 100644
--- a/cf-module-report/cf-module-report-biz/pom.xml
+++ b/cf-module-report/cf-module-report-biz/pom.xml
@@ -133,6 +133,46 @@
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ ${maven.dependency.plugin.version}
+
+
+ prepare-package
+
+ copy-dependencies
+
+
+
+ target/lib
+
+ com.cf.imes
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+ false
+
+
+ src/main/build/assembly.xml
+
+
+
+
+ bundle
+ package
+
+ single
+
+
+
+
diff --git a/cf-module-report/cf-module-report-biz/src/main/build/assembly.xml b/cf-module-report/cf-module-report-biz/src/main/build/assembly.xml
new file mode 100644
index 000000000..6569531ff
--- /dev/null
+++ b/cf-module-report/cf-module-report-biz/src/main/build/assembly.xml
@@ -0,0 +1,39 @@
+
+ bundle
+
+ tar.gz
+
+ false
+
+
+
+
+ ${basedir}/src/main/resources
+ config
+
+ application-${profileActive}.yaml
+ bootstrap-${profileActive}.yaml
+ bootstrap.yaml
+
+
+
+
+
+ ${basedir}/target/lib
+
+ *.jar
+
+
+ lib
+
+
+
+ ${project.build.directory}
+ /
+
+ ${project.artifactId}.jar
+
+
+
+
+
\ No newline at end of file
diff --git a/cf-module-report/cf-module-report-biz/src/main/resources/application-test.yaml b/cf-module-report/cf-module-report-biz/src/main/resources/application-test.yaml
new file mode 100644
index 000000000..110cf76c9
--- /dev/null
+++ b/cf-module-report/cf-module-report-biz/src/main/resources/application-test.yaml
@@ -0,0 +1,4 @@
+spring:
+ main:
+ allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
+ allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
\ No newline at end of file
diff --git a/cf-module-report/cf-module-report-biz/src/main/resources/bootstrap-test.yaml b/cf-module-report/cf-module-report-biz/src/main/resources/bootstrap-test.yaml
new file mode 100644
index 000000000..90fc424cd
--- /dev/null
+++ b/cf-module-report/cf-module-report-biz/src/main/resources/bootstrap-test.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 192.168.1.204:8848
+ discovery:
+ namespace: imes-test # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 192.168.1.204:8848 # Nacos 服务器地址
+ namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
\ No newline at end of file