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
ConstructorsConstructorDescriptionThis ctor is used in legacy components.DefaultSettingsBuilder(SettingsXmlFactory settingsXmlFactory, Interpolator interpolator, Map<String, org.codehaus.plexus.components.secdispatcher.Dispatcher> dispatchers) In Maven4 theSecDispatcheris injected and build settings are fully decrypted as well. -
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()This ctor is used in legacy components. -
DefaultSettingsBuilder
@Inject public DefaultSettingsBuilder(SettingsXmlFactory settingsXmlFactory, Interpolator interpolator, Map<String, org.codehaus.plexus.components.secdispatcher.Dispatcher> dispatchers) In Maven4 theSecDispatcheris injected and build settings are fully decrypted as well.
-
-
Method Details
-
build
Description copied from interface:SettingsBuilderBuilds the effective settings of the specified settings files.- Specified by:
buildin 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:SettingsBuilderValidate the specified settings.- Specified by:
validatein 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:SettingsBuilderConvert a model profile to a settings profile.- Specified by:
convertin interfaceSettingsBuilder
-
convert
Description copied from interface:SettingsBuilderConvert a settings profile to a model profile.- Specified by:
convertin interfaceSettingsBuilder
-