mirror of https://github.com/apache/maven.git
[MNG-7624] Use groupId:artifactId instead of empty goal (#911)
This commit is contained in:
parent
9e0cae423b
commit
4e38415b67
|
@ -420,6 +420,9 @@ public class ExecutionEventLogger extends AbstractExecutionListener {
|
||||||
|
|
||||||
private void append(MessageBuilder buffer, MojoExecution me) {
|
private void append(MessageBuilder buffer, MojoExecution me) {
|
||||||
String prefix = me.getMojoDescriptor().getPluginDescriptor().getGoalPrefix();
|
String prefix = me.getMojoDescriptor().getPluginDescriptor().getGoalPrefix();
|
||||||
|
if (StringUtils.isEmpty(prefix)) {
|
||||||
|
prefix = me.getGroupId() + ":" + me.getArtifactId();
|
||||||
|
}
|
||||||
buffer.mojo(prefix + ':' + me.getVersion() + ':' + me.getGoal());
|
buffer.mojo(prefix + ':' + me.getVersion() + ':' + me.getGoal());
|
||||||
if (me.getExecutionId() != null) {
|
if (me.getExecutionId() != null) {
|
||||||
buffer.a(' ').strong('(' + me.getExecutionId() + ')');
|
buffer.a(' ').strong('(' + me.getExecutionId() + ')');
|
||||||
|
|
Loading…
Reference in New Issue