From 0f38227120dbb6855ff93ebb3f04aceb1001fed0 Mon Sep 17 00:00:00 2001 From: sahanagana Date: Wed, 8 May 2024 20:35:17 -0500 Subject: [PATCH 1/2] Removed unused imports in RemoteDevMojo --- .../jkube/maven/plugin/mojo/develop/RemoteDevMojo.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java b/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java index 6921a08cc6..d10d843434 100644 --- a/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java +++ b/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java @@ -13,8 +13,6 @@ */ package org.eclipse.jkube.maven.plugin.mojo.develop; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; @@ -35,11 +33,12 @@ public class RemoteDevMojo extends AbstractJKubeMojo { @Override public void executeInternal() { - final RemoteDevelopmentService remoteDevelopmentService = - new RemoteDevelopmentService(jkubeServiceHub.getLog(), jkubeServiceHub.getClient(), remoteDevelopment); + final RemoteDevelopmentService remoteDevelopmentService = new RemoteDevelopmentService(jkubeServiceHub.getLog(), + jkubeServiceHub.getClient(), remoteDevelopment); Runtime.getRuntime().addShutdownHook(new Thread(() -> { if (jkubeServiceHub.getLog() instanceof AnsiLogger) { - // Perform uninstall before Maven does to avoid race conditions and messages being logged as Ansi to a closed + // Perform uninstall before Maven does to avoid race conditions and messages + // being logged as Ansi to a closed // AnsiConsole AnsiConsole.systemUninstall(); } From a5aeb74b4e1d8defc756e16480cbaafca40af349 Mon Sep 17 00:00:00 2001 From: sahanagana <70218712+sahanagana@users.noreply.github.com> Date: Wed, 8 May 2024 20:38:01 -0500 Subject: [PATCH 2/2] Fixed format change --- .../jkube/maven/plugin/mojo/develop/RemoteDevMojo.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java b/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java index d10d843434..5ecf2abcff 100644 --- a/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java +++ b/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/RemoteDevMojo.java @@ -33,12 +33,11 @@ public class RemoteDevMojo extends AbstractJKubeMojo { @Override public void executeInternal() { - final RemoteDevelopmentService remoteDevelopmentService = new RemoteDevelopmentService(jkubeServiceHub.getLog(), - jkubeServiceHub.getClient(), remoteDevelopment); + final RemoteDevelopmentService remoteDevelopmentService = + new RemoteDevelopmentService(jkubeServiceHub.getLog(), jkubeServiceHub.getClient(), remoteDevelopment); Runtime.getRuntime().addShutdownHook(new Thread(() -> { if (jkubeServiceHub.getLog() instanceof AnsiLogger) { - // Perform uninstall before Maven does to avoid race conditions and messages - // being logged as Ansi to a closed + // Perform uninstall before Maven does to avoid race conditions and messages being logged as Ansi to a closed // AnsiConsole AnsiConsole.systemUninstall(); }