From 5563998ace94f31e61036b8ab6a9384bac0980f4 Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Wed, 28 Feb 2024 14:02:55 +0100 Subject: [PATCH] Skip analysis of plugin executions with phases post quarkus:dev preparing for dev mode launch --- devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index 2781edf9f02f8..bdcd48eeff5d3 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -588,6 +588,13 @@ private String handleAutoCompile() throws MojoExecutionException { continue; } for (PluginExecution e : p.getExecutions()) { + if (e.getPhase() != null && !PRE_DEV_MODE_PHASES.contains(e.getPhase())) { + // skip executions with phases post quarkus:dev, such as install, deploy, site, etc + if (getLog().isDebugEnabled()) { + getLog().debug("Skipping " + e.getId() + " of " + p.getId()); + } + continue; + } String goalPrefix = null; if (!e.getGoals().isEmpty()) { goalPrefix = getMojoDescriptor(p, e.getGoals().get(0)).getPluginDescriptor().getGoalPrefix();