From ef19659cb67ed087878c1d860df7b009c82855d5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 3 May 2024 20:26:05 +0200 Subject: [PATCH] [ci] Only run PMD twice instead of three times during build pmd:check executes implicitly pmd:pmd, but with the default configuration. For execution "pmd-test" this means, we called pmd:pmd twice: Once within "pmd-test" to check test code and once more via pmd:check, but against the main code. Skipping now the default configuration always and explicitly call pmd:pmd in the two executions. Thanks @uhafner for the idea. --- pom.xml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index f3bab7a3e4..e5b7e66827 100644 --- a/pom.xml +++ b/pom.xml @@ -506,9 +506,22 @@ pmd-main verify + pmd check + cpd cpd-check + + ${pmd.skip} + 100 + + /net/sourceforge/pmd/pmd-dogfood-config.xml + + + target/generated-sources/javacc + target/generated-sources/antlr4 + + pmd-test @@ -518,6 +531,7 @@ check + ${pmd.skip} ${project.build.directory}/pmdTest/ true @@ -528,19 +542,15 @@ false - 100 1.${java.version} - - /net/sourceforge/pmd/pmd-dogfood-config.xml - - - target/generated-sources/javacc - target/generated-sources/antlr4 - false 2 true true + + true