Package org.apache.maven.api.services
Interface SettingsBuilder
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultSettingsBuilder
Builds the effective settings from a user settings file and/or a installation settings file.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(SettingsBuilderRequest request) Builds the effective settings of the specified settings files.default SettingsBuilderResult
Builds the effective settings of the specified settings paths.default SettingsBuilderResult
build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) Builds the effective settings of the specified settings paths.default SettingsBuilderResult
Builds the effective settings of the specified settings sources.default SettingsBuilderResult
build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.Convert a model profile to a settings profile.Convert a settings profile to a model profile.default List
<BuilderProblem> Validate the specified settings.Validate the specified settings.
-
Method Details
-
build
Builds the effective settings of the specified settings files.- 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
-
build
@Nonnull default SettingsBuilderResult build(@Nonnull Session session, @Nonnull Source installationSettingsSource, @Nonnull Source userSettingsSource) Builds the effective settings of the specified settings sources.- Returns:
- the result of the settings building, never
null
- Throws:
SettingsBuilderException
- if the effective settings could not be built
-
build
@Nonnull default SettingsBuilderResult build(@Nonnull Session session, @Nonnull Path installationSettingsPath, @Nonnull Path userSettingsPath) Builds the effective settings of the specified settings paths.- Returns:
- the result of the settings building, never
null
- Throws:
SettingsBuilderException
- if the effective settings could not be built
-
build
@Nonnull default SettingsBuilderResult build(@Nonnull Session session, @Nonnull Source installationSettingsSource, @Nonnull Source projectSettingsSource, @Nonnull Source userSettingsSource) Builds the effective settings of the specified settings sources.- Returns:
- the result of the settings building, never
null
- Throws:
SettingsBuilderException
- if the effective settings could not be built
-
build
@Nonnull default SettingsBuilderResult build(@Nonnull Session session, @Nonnull Path installationSettingsPath, @Nonnull Path projectSettingsPath, @Nonnull Path userSettingsPath) Builds the effective settings of the specified settings paths.- Returns:
- the result of the settings building, never
null
- Throws:
SettingsBuilderException
- if the effective settings could not be built
-
validate
Validate the specified settings.- Parameters:
settings
- The settings to validate, must not benull
.- Returns:
- The list of problems that were encountered, must not be
null
.
-
validate
Validate the specified settings.- 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
Convert a model profile to a settings profile. -
convert
Convert a settings profile to a model profile.
-