Maven Resource Excludes
Maven排除资源目录
排除资源目录,使用外部配置文件,每个环境的配置不同,配置文件不打包
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable> <!-- 生成可执行包 -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory> <!-- 资源目录位置 -->
<excludes>
<exclude>**/mece_test_service/**</exclude> <!-- 排除目录 -->
<exclude>**/saas_api_designer_service/**</exclude>
<exclude>application.properties</exclude> <!-- 排除文件 -->
<exclude>logback-spring.xml</exclude>
</excludes>
</resource>
</resources>
</build>