This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new c00b0c61147a CAMEL-23202 - workaround jacoco with multirelease jar
c00b0c61147a is described below

commit c00b0c61147aa8ac06f72f164bc0cf3a22603235
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Tue Mar 17 15:48:34 2026 +0100

    CAMEL-23202 - workaround jacoco with multirelease jar
    
    Jacoco doesn't support multi-release jar:
    https://github.com/jacoco/jacoco/issues/407
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 coverage/pom.xml | 6 ++++++
 parent/pom.xml   | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/coverage/pom.xml b/coverage/pom.xml
index 1f13f924a084..0ad772205afd 100644
--- a/coverage/pom.xml
+++ b/coverage/pom.xml
@@ -2641,6 +2641,12 @@
                                 <goals>
                                     <goal>report-aggregate</goal>
                                 </goals>
+                                <configuration>
+                                    <!-- Workaround to multi-release jar 
https://github.com/jacoco/jacoco/issues/407 -->
+                                    <excludes>
+                                        
<exclude>**/CamelThreadFactory*</exclude>
+                                    </excludes>
+                                </configuration>
                             </execution>
                         </executions>
                     </plugin>
diff --git a/parent/pom.xml b/parent/pom.xml
index 63a9e142ba81..942b1e1161af 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -4466,6 +4466,10 @@
                                 </goals>
                                 <configuration>
                                     <propertyName>jacocoAgent</propertyName>
+                                    <!-- Workaround to multi-release jar 
https://github.com/jacoco/jacoco/issues/407 -->
+                                    <excludes>
+                                        
<exclude>**/CamelThreadFactory*</exclude>
+                                    </excludes>
                                 </configuration>
                             </execution>
                         </executions>

Reply via email to