From 9cbe677c8b2bc1a88962de286924057fad9b9fa6 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Mon, 24 Aug 2020 11:57:11 +0200 Subject: [PATCH] Exclude generated JMH tests during static analysis. Enable code coverage during verify. --- pom.xml | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/pom.xml b/pom.xml index 14c251c5..9f1962b5 100644 --- a/pom.xml +++ b/pom.xml @@ -207,7 +207,6 @@ ${java.level} -Xlint:all - -XepExcludedPaths:.*/generated-test-sources/.* @@ -333,7 +332,7 @@ false checkstyle-configuration.xml true - **/*Assert*.java,**/InjectedTest.java,**/Messages.java + **/*Assert*.java,**/InjectedTest.java,**/Messages.java,**/*_jmh* @@ -370,6 +369,7 @@ target/generated-sources/localizer + target/generated-test-sources/test-annotations target/generated-test-sources/assertj-assertions @@ -440,6 +440,31 @@ + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + io/jenkins/plugins/**/* + + + + + + prepare-agent + + process-test-classes + + + report + verify + + report + + + + @@ -556,30 +581,6 @@ - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - io/jenkins/plugins/**/* - - - - - - prepare-agent - - - - report - prepare-package - - report - - - - org.apache.maven.plugins maven-dependency-plugin