Skip to content

Commit ff25545

Browse files
dnskrtdcmeehan
authored andcommitted
Allow to attach to current VM
1 parent fb80e85 commit ff25545

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

jmx/pom.xml

+12-1
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,16 @@
9595
</dependencies>
9696
</profile>
9797
</profiles>
98-
</project>
9998

99+
<build>
100+
<plugins>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-surefire-plugin</artifactId>
104+
<configuration>
105+
<argLine>-Djdk.attach.allowAttachSelf=true</argLine>
106+
</configuration>
107+
</plugin>
108+
</plugins>
109+
</build>
110+
</project>

skeleton-server/pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,16 @@
114114
<scope>test</scope>
115115
</dependency>
116116
</dependencies>
117+
118+
<build>
119+
<plugins>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-surefire-plugin</artifactId>
123+
<configuration>
124+
<argLine>-Djdk.attach.allowAttachSelf=true</argLine>
125+
</configuration>
126+
</plugin>
127+
</plugins>
128+
</build>
117129
</project>

0 commit comments

Comments
 (0)