in maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/datamodel/ExecuteAnnotationContent.java [60:76]
public void phase(String phase) {
if (phase != null && !phase.isEmpty()) {
for (LifecyclePhase p : LifecyclePhase.values()) {
if (Objects.equals(phase, p.id()) || Objects.equals(phase, p.name())) {
this.phase = p;
this.customPhase = null;
return;
}
}
this.phase = null;
this.customPhase = phase;
} else {
this.phase = null;
this.customPhase = null;
}
this.phase = LifecyclePhase.valueOf(phase);
}