in maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/datamodel/MojoAnnotationContent.java [72:84]
public void defaultPhase(String phase) {
if (phase != null && !phase.isEmpty()) {
for (LifecyclePhase p : LifecyclePhase.values()) {
if (Objects.equals(phase, p.id()) || Objects.equals(phase, p.name())) {
this.defaultPhase = p;
return;
}
}
throw new IllegalArgumentException("Could not find a matching phase for " + phase);
} else {
this.defaultPhase = null;
}
}