From e9bc657a0e6ec8bcd0617492e9cc4974781c4110 Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Mon, 16 Dec 2024 17:44:12 +0100 Subject: [PATCH] Remove JaCoCo offline instrumentation It incorrectly affects manifest calculation which leads to follow-up issues with aemanalyser-m-p and is generally not recommended (https://www.eclemma.org/jacoco/trunk/doc/instrument-mojo.html) It was originally introduced for compatibility with PowerMock but that is no longer used. Use a common execution data file for IT/UT as it is written to in append mode by default (https://github.com/jacoco/jacoco/issues/1676) This closes #3494 --- CHANGELOG.md | 10 +++++++--- pom.xml | 46 ++++++++++++++++++++++++++++------------------ 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c36cadb265..ba5b697504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,14 +10,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com) ## Unreleased ([details][unreleased changes details]) +### Changed + +- #3494 - Remove offline instrumentation with Jacoco + +## 6.9.10 - 2024-12-13 + +### Added - #3484 - Redirect Manager: A servlet to export redirects to a TXT file to use with pipeline-free redirects - #3480 - AEM Sites Copy Publish URLs ### Fixed - #3479 - Fixed Configurations Model for Redirect Manager after change in "redirect" resource as "sling:Folder" - -### Fixed - - #3483 - Fixed issue with genericlist/body.jsp importing a class from an impl package. ## 6.9.6 - 2024-11-20 diff --git a/pom.xml b/pom.xml index a7b6946740..c2f27d903d 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ 2024.8.17569.20240822T203847Z-240700 - 0.8.11 + 0.8.12 5.10.2 8 @@ -794,38 +794,48 @@ Bundle-DocURL: https://adobe-consulting-services.github.io/acs-aem-commons/ coverage + + + + org.apache.maven.plugins + maven-surefire-plugin + + @{jacoco.command} + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + @{jacoco.command} -Djacoco.command=@{jacoco.command} + + + + org.jacoco jacoco-maven-plugin ${jacoco.version} + - default-prepare-agent + prepare-agent prepare-agent + - - * - + jacoco.command - - jacoco-instrument - - instrument - - - - jacoco-restore-instrumented-classes - - restore-instrumented-classes - - report - prepare-package + verify report