You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by st...@apache.org on 2026/08/10 12:32:37 UTC
(johnzon) 03/05: add hack to prevent maven-surefire-reporting-plugin from complaining about \uffff
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git
commit cb35abb41c38e49d0a54a7e753311d144dd71f43
Author: Mark Struberg <st...@apache.org>
AuthorDate: Mon Aug 10 13:40:39 2026 +0200
add hack to prevent maven-surefire-reporting-plugin from complaining about \uffff
---
pom.xml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/pom.xml b/pom.xml
index 644edcc2..43dcfeb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -158,6 +158,11 @@
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${surefire.plugin.version}</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>3.1.0</version>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
@@ -452,6 +457,29 @@
</configuration>
</plugin>
+ <!-- Clean invalid XML characters from surefire reports before site generation
+ Jakarta EE TCK tests may write non-characters (U+FFFF, U+FFFE) to test output -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>clean-surefire-xml</id>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <replaceregexp match="[\uFFFF\uFFFE]" replace="" flags="g">
+ <fileset dir="${project.basedir}" includes="**/target/surefire-reports/*.xml"/>
+ </replaceregexp>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>