From 4d596941ea5a7bb2a09c887d0197c40ea52323bb Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Fri, 30 Jun 2023 15:22:00 +0200 Subject: [PATCH] Attach renamed original JAR to the Maven project to keep install plugin working --- devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java index 77db06a5e18d0..808ec877381e3 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java @@ -161,7 +161,8 @@ && isNativeProfileEnabled(mavenProject())) { } catch (IOException e) { throw new UncheckedIOException(e); } - original.setFile(result.getJar().getOriginalArtifact().toFile()); + // unless we point to the renamed file the install plugin will fail + original.setFile(renamedOriginal.toFile()); } } if (uberJarWithSuffix) {