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
  • Loading branch information
aloubyansky committed Feb 28, 2024
1 parent 38bae4b commit 5563998
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 5563998

Please sign in to comment.