Skip to content

Commit 8957298

Browse files
committed
Self attaching an agent is now unavailable since Java 21+
1 parent be1be0a commit 8957298

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

activemq-mqtt/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,23 @@
198198
</plugins>
199199
</pluginManagement>
200200
<plugins>
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-dependency-plugin</artifactId>
204+
<executions>
205+
<execution>
206+
<goals>
207+
<goal>properties</goal>
208+
</goals>
209+
</execution>
210+
</executions>
211+
</plugin>
201212
<plugin>
202213
<artifactId>maven-surefire-plugin</artifactId>
203214
<configuration>
204215
<forkCount>1</forkCount>
205216
<reuseForks>false</reuseForks>
206-
<argLine>${surefire.argLine}</argLine>
217+
<argLine>-javaagent:${org.mockito:mockito-core:jar}</argLine>
207218
<runOrder>alphabetical</runOrder>
208219
<systemPropertyValues>
209220
<org.apache.activemq.default.directory.prefix>target</org.apache.activemq.default.directory.prefix>

0 commit comments

Comments
 (0)