Skip to content

Commit 8760213

Browse files
committed
[pom] Define byte buddy agent for compiler and surefire
newer jdks (ie 21 for example) are noting undefined usage will be blocked in the future, defining the used annotation processor as a result.
1 parent 095ebc6 commit 8760213

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
<spotbugs.onlyAnalyze>org.apache.ibatis.*</spotbugs.onlyAnalyze>
155155

156156
<!-- Surefire Setup -->
157-
<argLine>-Xmx2048m</argLine>
157+
<argLine>-Xmx2048m -javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy.version}/byte-buddy-agent-${byte-buddy.version}.jar</argLine>
158158

159159
<!-- Reproducible Builds -->
160160
<project.build.outputTimestamp>1702533513</project.build.outputTimestamp>
@@ -355,6 +355,19 @@
355355

356356
<build>
357357
<plugins>
358+
<plugin>
359+
<groupId>org.apache.maven.plugins</groupId>
360+
<artifactId>maven-compiler-plugin</artifactId>
361+
<configuration>
362+
<annotationProcessorPaths>
363+
<path>
364+
<groupId>net.bytebuddy</groupId>
365+
<artifactId>byte-buddy-agent</artifactId>
366+
<version>${byte-buddy.version}</version>
367+
</path>
368+
</annotationProcessorPaths>
369+
</configuration>
370+
</plugin>
358371
<plugin>
359372
<groupId>org.apache.maven.plugins</groupId>
360373
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)