From 1d742e34b366ac039e6ee2e3b71bc985976d4b2e Mon Sep 17 00:00:00 2001 From: still_learning7 <85026477+cantprogram01@users.noreply.github.com> Date: Sun, 3 Apr 2022 05:24:44 +0800 Subject: [PATCH] migrate from cobertura to jacoco tested the build via jenkins remote deployment for tomcat using JDK11, Welcome to Java Maven Calculator Web App!!! Sat Apr 02 21:18:22 UTC 2022 {"result":34,"time":"Sat Apr 02 21:17:25 UTC 2022","x":8,"y":26} {"result":4,"time":"Sat Apr 02 21:17:48 UTC 2022","x":12,"y":8} {"result":88,"time":"Sat Apr 02 21:18:00 UTC 2022","x":11,"y":8} {"result":1,"time":"Sat Apr 02 21:18:11 UTC 2022","x":12,"y":12} due to cobertura JDK8 below only support migrating to jacoco for JDK9+ support sun.tool jar file missing error fix --- pom.xml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index ee688c9..2b5c9a3 100644 --- a/pom.xml +++ b/pom.xml @@ -94,26 +94,26 @@ maven-war-plugin 3.2.2 - - org.codehaus.mojo - cobertura-maven-plugin - 2.7 - - - cobertura - test - - cobertura - - - - xml - html - - - - - + + org.jacoco + jacoco-maven-plugin + 0.8.6 + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + + org.eclipse.jetty jetty-maven-plugin @@ -275,13 +275,13 @@ - org.codehaus.mojo - cobertura-maven-plugin - 2.7 + org.jacoco + jacoco-maven-plugin + 0.8.6 - cobertura + jacoco