Quality Assurance Parent POM
Quality Assurance parent POM for Java 8 and lesser projects.
<parent>
<groupId>org.kasource</groupId>
<artifactId>java-qa-pom</artifactId>
<version>0.5</version>
</parent>
Runs QA tools when the system property run.qa is set to true.
mvn clean verify -Drun.qa=true
The following checks and reports are ran when the system property is set or when its profile is activated.
- Checkstyle
- PMD
- Findbugs (JDK < 1.8)
- Spotbugs (JDK > 1.7)
- Cobertura (JDK < 1.8)
- JaCoCo (JDK > 1.7)
- Enforcer
- JavaDoc
- OWASP Dependency Check
Each tool can be enabled individually by setting its profile.
mvn clean verify -P checkstyle,pmd,findbugs,spotbugs,cobertura,jacoco,enforcer,javadoc,dependency-check
JDK Version
The default JDK version is 11.
JDK version to use can be specified with the maven property jdk.version. Override in child POMs to change JDK version.
To use JDK 1.8 set the property as
<properties>
<jdk.version>8</jdk.version>
</properties>