Skip to content

Commit

Permalink
Merge pull request #594 from gsmet/quarkus-2.11.1
Browse files Browse the repository at this point in the history
Upgrade to Quarkus 2.11.1.Final
  • Loading branch information
gsmet authored Jul 27, 2022
2 parents cab95c9 + 644131e commit 4f3c5f2
Show file tree
Hide file tree
Showing 6 changed files with 1,177 additions and 1,170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.aesh.readline.terminal.impl.Pty;
import org.aesh.terminal.Attributes;
import org.aesh.terminal.utils.ANSI;
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.BuildBase;
Expand Down Expand Up @@ -514,7 +515,13 @@ private void handleAutoCompile() throws MojoExecutionException {
String jandexGoalPhase = getGoalPhaseOrNull(ORG_JBOSS_JANDEX, JANDEX_MAVEN_PLUGIN, "jandex", "process-classes");
boolean indexClassNeeded = jandexGoalPhase != null;

for (String goal : session.getGoals()) {
List<String> goals = session.getGoals();
// check for default goal(s) if none were specified explicitly,
// see also org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator
if (goals.isEmpty() && !StringUtils.isEmpty(project.getDefaultGoal())) {
goals = List.of(StringUtils.split(project.getDefaultGoal()));
}
for (String goal : goals) {
if (goal.endsWith("quarkus:generate-code")) {
prepareNeeded = false;
}
Expand Down
Loading

0 comments on commit 4f3c5f2

Please sign in to comment.