Skip to content

Commit c2a7186

Browse files
authored
Merge pull request #3079 from hazendaz/master
[pom] Define byte buddy agent for compiler and surefire
2 parents 095ebc6 + 8760213 commit c2a7186

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)