Skip to content

Commit aca17b9

Browse files
committed
Add -Djdk.attach.allowAttachSelf=true to surefire config for bmunit
JDK9+ does not allow dynamic loading of agent code by default. For BMUnit-based tests to work we need to allow byteman to attach to VMs so we add this to our surefire config.
1 parent 5bd4095 commit aca17b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ limitations under the License.
747747
<configuration>
748748
<groups>${test.groups}</groups>
749749
<useFile>false</useFile>
750+
<argLine>-Djdk.attach.allowAttachSelf=true</argLine>
750751
<systemPropertyVariables>
751752
<cassandra.version>${cassandra.version}</cassandra.version>
752753
<ipprefix>${ipprefix}</ipprefix>

0 commit comments

Comments
 (0)