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) {