场景
spring-boot-maven-plugin
希望其下的所有模块都自动执行spring-boot-maven-plugin
Maven A的配置如下
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>B</module>
<module>C</module>
<module>D</module>
<module>E</module>
<module>F</module>
<module>G</module>
</modules>
给模块 G 按如下配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
skip 插件即可
(END)