My helper package of maven building procedures.
Including:
- checkstyle.xml: Configuration file for CheckStyle
- findbugs-exclude-filter.xml: Configuration file for Findbugs/Spotbugs
- formatter-2spaces.xml: Formatter profile, with 2 spaces as indentation, for formatter-maven-plugin
- formatter-4spaces.xml: Formatter profile, with 4 spaces as indentation, for formatter-maven-plugin
- p3c-formatter-2spaces.xml: Formatter profile, with 2 spaces as indentation and complies with alibaba/p3c, for formatter-maven-plugin
- p3c-formatter-4spaces.xml: Formatter profile, with 4 spaces as indentation and complies with alibaba/p3c, for formatter-maven-plugin
- hooks/commit-msg: git commit-msg hook for conventional commit specification checking before committing
- hooks/pre-commit: git pre-commit hook for formatting files before committing
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>${formatter.plugin}</version>
<dependencies>
<dependency>
<groupId>cn.yusiwen</groupId>
<artifactId>maven-build-helper</artifactId>
<version>${maven-build-helper.version}</version>
</dependency>
</dependencies>
<configuration>
<!--suppress UnresolvedMavenProperty -->
<configFile>p3c-formatter-${indent.size}spaces.xml</configFile>
</configuration>
</plugin>
For more details, see my Parent Pom Project