Interface Options
- All Known Subinterfaces:
EncryptOptions
,MavenOptions
,ShellOptions
,UpgradeOptions
- All Known Implementing Classes:
CommonsCliEncryptOptions
,CommonsCliMavenOptions
,CommonsCliOptions
,CommonsCliShellOptions
,CommonsCliUpgradeOptions
,LayeredMavenOptions
,LayeredOptions
Represents the base options supported by Maven tools.
This interface defines methods to access various configuration options
that can be set through command-line arguments or configuration files.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant indicating that the options source is the command-line interface. -
Method Summary
Modifier and TypeMethodDescriptionReturns the path to an alternate installation settings file.Returns the path to an alternate installation toolchains file.Returns the path to an alternate project settings file.Returns the path to an alternate user settings file.Returns the path to an alternate user toolchains file.color()
Returns the color setting for console output.void
displayHelp
(ParserRequest request, Consumer<String> printWriter) Displays help information for these options.Returns the severity level at which the build should fail.Indicates whether to force interactive mode.help()
Indicates whether to show help information.interpolate
(UnaryOperator<String> callback) Returns a new instance ofOptions
with values interpolated using the given properties.logFile()
Returns the path to the log file.Indicates whether to run in non-interactive mode.offline()
Indicates whether Maven should operate in offline mode.quiet()
Indicates whether to run in quiet mode.Returns whether raw streams should be logged.Indicates whether to show error stack traces.Indicates whether to show the version information.Indicates whether to show the version information and exit.source()
Returns a simple designator of the options source, such as "cli", "maven.conf", etc.Returns the user-defined properties for the Maven execution.verbose()
Indicates whether to run in verbose mode.default void
warnAboutDeprecatedOptions
(ParserRequest request, Consumer<String> printWriter) Emits warning messages if deprecated options are used.
-
Field Details
-
SOURCE_CLI
Constant indicating that the options source is the command-line interface.- See Also:
-
-
Method Details
-
source
-
userProperties
-
showVersionAndExit
-
showVersion
-
quiet
-
verbose
-
showErrors
-
failOnSeverity
-
nonInteractive
-
forceInteractive
-
altUserSettings
-
altProjectSettings
-
altInstallationSettings
-
altUserToolchains
-
altInstallationToolchains
-
logFile
-
rawStreams
-
color
-
offline
-
help
-
interpolate
-
warnAboutDeprecatedOptions
default void warnAboutDeprecatedOptions(@Nonnull ParserRequest request, @Nonnull Consumer<String> printWriter) Emits warning messages if deprecated options are used.- Parameters:
printWriter
- the string consumer to use for output
-
displayHelp
Displays help information for these options.- Parameters:
printWriter
- the string consumer to use for output
-