Skip to content

Commit

Permalink
Merge pull request #14634 from stuartwdouglas/native-image-warning
Browse files Browse the repository at this point in the history
Log warning about the use of NativeImageMojo
  • Loading branch information
geoand authored Jan 27, 2021
2 parents 014a369 + dc467d6 commit 483f147
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 483f147

Please sign in to comment.