此随笔不会介绍Maven是什么,以及如何install之类的基础话题,有关信息请参考Maven Getting Started Guide
如何产生Project Report
在pom.xml中配置<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>surefire-report-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>surefire-report-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
在src/site/site.xml中添加
${reports}
然后运行mvn site重新生成site,就会看到Project Report的信息了。