[MNG-7624] Use groupId:artifactId instead of empty goal (#911)

This commit is contained in:
Guillaume Nodet 2022-12-15 21:18:29 +01:00 committed by GitHub
parent 9e0cae423b
commit 4e38415b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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