[MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed (#898)

This commit is contained in:
Guillaume Nodet 2022-12-05 16:46:15 +01:00 committed by GitHub
parent 6773c05128
commit dc47da4366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ public class ExecutionEventLogger extends AbstractExecutionListener {
}
private void append(MessageBuilder buffer, MojoExecution me) {
buffer.mojo(me.getArtifactId() + ':' + me.getVersion() + ':' + me.getGoal());
String prefix = me.getMojoDescriptor().getPluginDescriptor().getGoalPrefix();
buffer.mojo(prefix + ':' + me.getVersion() + ':' + me.getGoal());
if (me.getExecutionId() != null) {
buffer.a(' ').strong('(' + me.getExecutionId() + ')');
}