From 278e56d5d47afa009ff2ab3fb840b9afea251f38 Mon Sep 17 00:00:00 2001 From: Scott Kurz Date: Thu, 17 Aug 2023 22:50:31 -0400 Subject: [PATCH] fix war-plugin compare Signed-off-by: Scott Kurz --- .../main/java/io/openliberty/tools/maven/server/DevMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/DevMojo.java b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/DevMojo.java index 376bdb0ab..5ae542a1a 100644 --- a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/DevMojo.java +++ b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/DevMojo.java @@ -922,7 +922,7 @@ public boolean recompileBuildFile(File buildFile, Set compileArtifactPat } config = ExecuteMojoUtil.getPluginGoalConfig(warPlugin, "exploded", getLog()); oldConfig = ExecuteMojoUtil.getPluginGoalConfig(backupWarPlugin, "exploded", getLog()); - if (!Objects.equals(config, oldConfig) || warPlugin.getVersion() != backupWarPlugin.getVersion()) { + if (!Objects.equals(config, oldConfig) || !warPlugin.getVersion().equals(backupWarPlugin.getVersion())) { redeployApp = true; } config = ExecuteMojoUtil.getPluginGoalConfig(libertyPlugin, "generate-features", getLog());