From 7686b4d2c6e9cc07e205725eafa39f0e31dd3613 Mon Sep 17 00:00:00 2001 From: Karl Heinz Marbaise Date: Sun, 7 Nov 2021 13:18:38 +0100 Subject: [PATCH] Fixed #2 - Use no-fork variants / pluginManagement only for plugins o using properties for plugins (maven-compiler-plugin) o commong version for surefire/failsafe/surefire-report-plugin o cleaned up jacoco configuration o Using import scope for JUnit Jupiter via dependencyManagement o removed maven-antrun-plugin because it's not used. --- pom.xml | 240 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 146 insertions(+), 94 deletions(-) diff --git a/pom.xml b/pom.xml index c29d1d2..25a9cf4 100644 --- a/pom.xml +++ b/pom.xml @@ -36,6 +36,10 @@ UTF-8 + 3.0.0-M5 + 17 + + 17 - org.jacoco jacoco-maven-plugin - 0.8.7 + + + + BUNDLE + + + COMPLEXITY + COVEREDRATIO + 0.60 + + + + + - default-prepare-agent prepare-agent - - - - default-report - report - - - - default-check - check - - - - BUNDLE - - - COMPLEXITY - COVEREDRATIO - 0.60 - - - - - - + + + + org.junit + junit-bom + 5.8.1 + import + pom + + + org.assertj + assertj-core + 3.21.0 + + + + - - org.junit.jupiter - junit-jupiter-api - 5.8.1 - test - org.junit.jupiter junit-jupiter-engine - 5.8.1 test - + org.assertj assertj-core - 3.21.0 test @@ -230,16 +292,14 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.2 + https://mojo.codehaus.org/versions-maven-plugin/version-rules.html --> org.codehaus.mojo versions-maven-plugin - 2.7 @@ -253,18 +313,16 @@ + https://maven.apache.org/plugins/maven-changelog-plugin/usage.html --> org.apache.maven.plugins maven-changelog-plugin - 2.3 org.apache.maven.plugins maven-changes-plugin - 2.12.1 @@ -278,18 +336,31 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 true - 17 + + + + javadoc-no-fork + test-javadoc-no-fork + + + org.apache.maven.plugins maven-jxr-plugin - 3.0.0 + + + + test-jxr-no-fork + jxr-no-fork + + + - - - - - - - org.codehaus.mojo jdepend-maven-plugin - 2.0 + + + + generate-no-fork + + + org.codehaus.mojo javancss-maven-plugin - 2.1 org.apache.maven.plugins maven-pmd-plugin - 3.14.0 - - - false - - - - - org.apache.maven.plugins - maven-surefire-report-plugin - 3.0.0-M5 - report-only + pmd @@ -345,34 +401,30 @@ org.apache.maven.plugins - maven-checkstyle-plugin - 3.1.0 + maven-surefire-report-plugin - checkstyle + report-only - org.jacoco - jacoco-maven-plugin + org.apache.maven.plugins + maven-checkstyle-plugin - - report + checkstyle - com.github.spotbugs spotbugs-maven-plugin - 4.4.2