Skip to content

Commit 152805b

Browse files
Configure Maven surefire/failsafe for Mockito on Java 25 (#452)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 0b2b128 commit 152805b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
2525
<jjwt.version>0.13.0</jjwt.version>
2626
<okhttp.version>5.3.2</okhttp.version>
27+
<!-- Default empty argLine property - required for @{argLine} late replacement -->
28+
<argLine></argLine>
2729
</properties>
2830
<organization>
2931
<name>Berry Cloud Ltd</name>
@@ -101,9 +103,19 @@
101103
</dependency>
102104
</dependencies>
103105
</plugin>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-surefire-plugin</artifactId>
109+
<configuration>
110+
<argLine>@{argLine} -XX:+EnableDynamicAgentLoading</argLine>
111+
</configuration>
112+
</plugin>
104113
<plugin>
105114
<groupId>org.apache.maven.plugins</groupId>
106115
<artifactId>maven-failsafe-plugin</artifactId>
116+
<configuration>
117+
<argLine>@{argLine} -XX:+EnableDynamicAgentLoading</argLine>
118+
</configuration>
107119
<executions>
108120
<execution>
109121
<goals>

0 commit comments

Comments
 (0)