From 1a399135dec40e43d89fb8b7d3663230b0b49aee Mon Sep 17 00:00:00 2001 From: zhangdaiscott <zhangdaiscott@163.com> Date: Wed, 18 May 2022 16:10:43 +0800 Subject: [PATCH] SpringCloud运行环境,排除system模块jar中的application*.yaml配置文件 --- jeecg-boot/jeecg-boot-module-system/pom.xml | 20 +++++++++++++++++++- jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml | 0 2 files changed, 19 insertions(+), 1 deletion(-) delete mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml diff --git a/jeecg-boot/jeecg-boot-module-system/pom.xml b/jeecg-boot/jeecg-boot-module-system/pom.xml index 7cc1445..2be5ef6 100644 --- a/jeecg-boot/jeecg-boot-module-system/pom.xml +++ b/jeecg-boot/jeecg-boot-module-system/pom.xml @@ -61,10 +61,28 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> - <!--微服务模式下修改为true,跳过SpringBoot启动打包插件,否则微服务模块无法引用--> + <!--SpringCloud运行环境 ,值改为true跳过SpringBoot启动打包插件 --> <skip>${skip.springboot.maven}</skip> </configuration> </plugin> </plugins> </build> + + <profiles> + <!-- SpringCloud运行环境 --> + <profile> + <id>SpringCloud</id> + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <excludes> + <exclude>application.yml</exclude> + <exclude>application-*.yml</exclude> + </excludes> + </resource> + </resources> + </build> + </profile> + </profiles> </project> \ No newline at end of file diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml deleted file mode 100644 index e69de29..0000000 --- a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml +++ /dev/null -- libgit2 0.22.2