我有一个多模块项目并编写了一个扩展。我只想将扩展用于父构建,但是当我在 parent 中添加我的扩展时,它也会为子模块执行。是否可以配置此行为?
更新
家长会
...
<modules>
<module>first</module>
<module>first</module>
</modules>
<build>
<extensions>
<extension>
<groupId>com.my.ext</groupId>
<artifactId>extension</artifactId>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
儿童绒球
....
<parent>
<groupId>com.backend</groupId>
<artifactId>first</artifactId>
<version>PROJECT-SNAPSHOT</version>
<relativePath>../config</relativePath>
</parent>
...