From dc467d6220970fe4118ba4a4efbb7b8ac00a05ae Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Wed, 27 Jan 2021 10:10:53 +1100 Subject: [PATCH] Log warning about the use of NativeImageMojo --- .../maven/src/main/java/io/quarkus/maven/NativeImageMojo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java index 1cf0e37c589e6..167ef62ae3bc8 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java @@ -179,6 +179,8 @@ public class NativeImageMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { + getLog().warn( + "The quarkus:native-image goal is deprecated, and will be removed in a future version. To build a native executable set the config property quarkus.package.type=native. For more info see https://quarkus.io/guides/building-native-image"); if (project.getPackaging().equals("pom") && appArtifact == null) { getLog().info("Type of the artifact is POM and appArtifact parameter has not been set, skipping native-image goal");