mvn clean:清理
mvn compile:编译
mvn test:测试
mvn surefire-report:report:测试成功率
mvn cobertura:cobertura:测试覆盖率
- CheckStyle
mvn checkstyle:checkstyle:代码规范检查
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven.checkstyle.version}</version>
</plugin>
- JavaDoc
mvn javadoc:jar:生成说明文档
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.6.1</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>