Ensure that run mojo's child process is killed when Maven is killed
Fixes gh-32607
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user