Class CLIReportingUtils

java.lang.Object
org.apache.maven.cling.utils.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()
    • showVersion

      public static String showVersion(String commandLine, String terminal)
    • 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(TemporalAccessor instant)
    • formatDuration

      public static String formatDuration(Duration duration)