Class CLIReportingUtils

java.lang.Object
org.apache.maven.cli.CLIReportingUtils

public final class CLIReportingUtils extends Object
Utility class used to report errors, statistics, application version info, etc.
  • Field Details

  • Constructor Details

    • CLIReportingUtils

      public CLIReportingUtils()
  • Method Details

    • showVersion

      public static String showVersion()
    • showVersionMinimal

      public static String showVersionMinimal()
    • createMavenVersionString

      public static String createMavenVersionString(Properties buildProperties)
      Create a human-readable string containing the Maven version, buildnumber, and time of build
      Parameters:
      buildProperties - The build properties
      Returns:
      Readable build info
    • getBuildProperties

      public static Properties getBuildProperties()
    • showError

      public static void showError(org.slf4j.Logger logger, String message, Throwable e, boolean showStackTrace)
    • formatTimestamp

      public static String formatTimestamp(long timestamp)
    • formatDuration

      public static String formatDuration(long duration)