在禁用子POM中的Findbugs时,以下对我有用:
<plugin> <groupId>org.prehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <executions> <execution> <id>ID_AS_IN_PARENT</id> <!-- id is necessary sometimes --> <phase>none</phase> </execution> </executions></plugin>
注意:Findbugs插件的完整定义在我们的父/超级POM中,因此它将继承该版本等。
在Maven 3中,您需要使用:
<configuration> <skip>true</skip> </configuration>
用于插件。



