Skip to content

Commit

Permalink
Fix warning when launching dev mode specifying quarkus-maven-plugin G…
Browse files Browse the repository at this point in the history
…AV on the command line
  • Loading branch information
aloubyansky committed Feb 19, 2024
1 parent b353c8b commit c2f36d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ private String handleAutoCompile() throws MojoExecutionException {
if (!e.getGoals().isEmpty()) {
goalPrefix = getMojoDescriptor(p, e.getGoals().get(0)).getPluginDescriptor().getGoalPrefix();
pluginPrefixes.put(goalPrefix, p);
pluginPrefixes.put(p.getId(), p);
}
if (e.getPhase() != null) {
phaseExecutions.computeIfAbsent(e.getPhase(), k -> new ArrayList<>()).add(new PluginExec(p, goalPrefix, e));
Expand Down Expand Up @@ -630,7 +631,7 @@ private String handleAutoCompile() throws MojoExecutionException {
if (goal.endsWith(currentGoal)) {
break;
}
var colon = goal.indexOf(':');
var colon = goal.lastIndexOf(':');
if (colon >= 0) {
var plugin = pluginPrefixes.get(goal.substring(0, colon));
if (plugin == null) {
Expand Down

0 comments on commit c2f36d0

Please sign in to comment.