Skip to content

Commit

Permalink
Skip analysis of plugin executions with phases post quarkus:dev prepa…
Browse files Browse the repository at this point in the history
…ring for dev mode launch

(cherry picked from commit 5563998)
  • Loading branch information
aloubyansky authored and gsmet committed Mar 5, 2024
1 parent bca80eb commit c7e39ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c7e39ee

Please sign in to comment.