pull/31190/head
Andy Wilkinson 3 years ago
parent 26b89bfc80
commit 14af1bb2dc

@ -74,8 +74,7 @@ public class StopMojo extends AbstractMojo {
return;
}
getLog().info("Stopping application...");
try (JMXConnector connector = SpringApplicationAdminClient
.connect(this.jmxPort)) {
try (JMXConnector connector = SpringApplicationAdminClient.connect(this.jmxPort)) {
MBeanServerConnection connection = connector.getMBeanServerConnection();
stop(connection);
}
@ -91,8 +90,7 @@ public class StopMojo extends AbstractMojo {
}
catch (InstanceNotFoundException ex) {
throw new MojoExecutionException(
"Spring application lifecycle JMX bean not found. Could not stop application gracefully",
ex);
"Spring application lifecycle JMX bean not found. Could not stop application gracefully", ex);
}
}

Loading…
Cancel
Save