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