Hello!

I'm running into an issue with the Jacoco Maven plugin.

I run the `report-aggregate` goal at the end of my builds to analyze
code and upload a coverage report in CI. This is the setup in the parent
pom that's shared across all projects:

https://github.com/io7m-com/primogenitor/blob/cd07a8034cf36bd9ac28480eaa01da08fc35ab4a/pom.xml#L954

Now, in one project, I have a test suite that contains what is
essentially a zip file containing Java class files. This zip file is a
file specimen that's used in the actual test code. It seems that the
Jacoco plugin is wandering into this zip file during reporting in CI and
causing the following error:

2024-10-16T20:01:52.1868147Z [ERROR] Failed to execute goal
org.jacoco:jacoco-maven-plugin:0.8.11:report-aggregate
(jacoco-report-merged) on project com.io7m.montarre.tests: An error has
occurred in JaCoCo Aggregate report generation. Error while creating
report: Error while analyzing
D:\a\montarre\montarre\com.io7m.montarre.tests\target\classes\com\io7m\montarre\tests\com.io7m.montarre.distribution-0.0.1-SNAPSHOT.mpk@LIB/LOGBACK-CORE-1.5.8.JAR@ch/qos/logback/core/util/ExecutorServiceUtil$1.class
with JaCoCo 0.8.11.202310140853/f33756c. Can't add different class with
same name: ch/qos/logback/core/util/ExecutorServiceUtil$1 -> [Help 1]

The actual project in question is here:

https://github.com/io7m-com/montarre

I'm not sure the CI build logs are visible to outsiders, though (they
probably aren't).

Is there some way to get the plugin to ignore these class files? If they
exist at all, they'll always be in a file with the suffix ".mpk", if
that helps at all.

-- 
Mark Raynsford | https://www.io7m.com

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/e7cd93f2-de94-4543-bcda-6d6af77bbe32%40io7m.com.

Reply via email to