Ensure that run mojo's child process is killed when Maven is killed

Fixes gh-32607
pull/32614/head
Andy Wilkinson 2 years ago
parent 4ffc421b3c
commit 0ee277b8c3

@ -65,6 +65,7 @@ class JavaProcessExecutor {
int run(File workingDirectory, List<String> args, Map<String, String> environmentVariables)
throws MojoExecutionException {
RunProcess runProcess = new RunProcess(workingDirectory, getJavaExecutable());
this.runProcessCustomizer.accept(runProcess);
try {
int exitCode = runProcess.run(true, args, environmentVariables);
if (!hasTerminatedSuccessfully(exitCode)) {

Loading…
Cancel
Save