All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.leantechniques.maven.buildtime.MojoExecutionName Maven / Gradle / Ivy

Go to download

This extension displays the duration of each plugin to discover why your build is slow.

The newest version!
package co.leantechniques.maven.buildtime;

import java.util.Locale;

import org.apache.maven.plugin.MojoExecution;

public class MojoExecutionName {

    private final String name;

    public MojoExecutionName(MojoExecution mojoExecution) {
        name = String.format(Locale.ENGLISH,
                "%s:%s (%s)",
                mojoExecution.getArtifactId(),
                mojoExecution.getGoal(),
                mojoExecution.getExecutionId());
    }

    public String getName() {
        return name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy