Class CLIReportingUtils
java.lang.Object
org.apache.maven.cling.utils.CLIReportingUtils
Utility class used to report errors, statistics, application version info, etc.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringcreateMavenVersionString(Properties buildProperties) Create a human-readable string containing the Maven version, buildnumber, and time of buildstatic StringformatDuration(Duration duration) static StringformatTimestamp(TemporalAccessor instant) static Propertiesstatic voidstatic Stringstatic StringshowVersion(String commandLine, String terminal) static String
- 
Field Details- 
MBpublic static final long MB- See Also:
 
- 
BUILD_VERSION_PROPERTY- See Also:
 
 
- 
- 
Constructor Details- 
CLIReportingUtilspublic CLIReportingUtils()
 
- 
- 
Method Details- 
showVersion
- 
showVersion
- 
showVersionMinimal
- 
createMavenVersionStringCreate 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
 
-