mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Ensure that run mojo's child process is killed when Maven is killed
Fixes gh-32607
This commit is contained in:
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…
Reference in New Issue
Block a user