Package org.apache.maven.internal.impl
Class DefaultSettingsBuilder
java.lang.Object
org.apache.maven.internal.impl.DefaultSettingsBuilder
- All Implemented Interfaces:
Service
,SettingsBuilder
Builds the effective settings from a user settings file and/or a global settings file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(SettingsBuilderRequest request) Builds the effective settings of the specified settings files.Convert a model profile to a settings profile.Convert a settings profile to a model profile.Validate the specified settings.
-
Constructor Details
-
DefaultSettingsBuilder
public DefaultSettingsBuilder() -
DefaultSettingsBuilder
-
-
Method Details
-
build
Description copied from interface:SettingsBuilder
Builds the effective settings of the specified settings files.- Specified by:
build
in interfaceSettingsBuilder
- Parameters:
request
- the settings building request that holds the parameters, must not benull
- Returns:
- the result of the settings building, never
null
- Throws:
SettingsBuilderException
- if the effective settings could not be built
-
validate
Description copied from interface:SettingsBuilder
Validate the specified settings.- Specified by:
validate
in interfaceSettingsBuilder
- Parameters:
settings
- The settings to validate, must not benull
.isProjectSettings
- Boolean indicating if the validation is for project settings or user / installation settings.- Returns:
- The list of problems that were encountered, must not be
null
.
-
convert
Description copied from interface:SettingsBuilder
Convert a model profile to a settings profile.- Specified by:
convert
in interfaceSettingsBuilder
-
convert
Description copied from interface:SettingsBuilder
Convert a settings profile to a model profile.- Specified by:
convert
in interfaceSettingsBuilder
-