Package org.apache.maven.cli
Class CLIReportingUtils
java.lang.Object
org.apache.maven.cli.CLIReportingUtils
Utility class used to report errors, statistics, application version info, etc.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createMavenVersionString
(Properties buildProperties) Create a human-readable string containing the Maven version, buildnumber, and time of buildstatic String
formatDuration
(long duration) static String
formatTimestamp
(long timestamp) static Properties
static void
static String
static String
-
Field Details
-
MB
public static final long MB- See Also:
-
BUILD_VERSION_PROPERTY
- See Also:
-
-
Constructor Details
-
CLIReportingUtils
public CLIReportingUtils()
-
-
Method Details
-
showVersion
-
showVersionMinimal
-
createMavenVersionString
Create a human-readable string containing the Maven version, buildnumber, and time of build- Parameters:
buildProperties
- The build properties- Returns:
- Readable build info
-
getBuildProperties
-
showError
-
formatTimestamp
-
formatDuration
-