maven配置
在pom.xml中加入
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>3.0.5</version> <configuration> <effort>Max</effort> <threshold>High</threshold> <xmlOutput>false</xmlOutput> </configuration> </plugin> </plugins> </reporting> <build> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.9.1</version> <dependencies> <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-site-renderer</artifactId> <version>1.10</version> </dependency> </dependencies> </plugin> </build>
|
运行
在pom.xml所在目录执行mvn compile site
生成报告
在target/site目录中则能查看到扫描报告
观点仅代表自己,期待你的留言。