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 global settings file.
-
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
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 globalSettingsSource, Source projectSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.
-
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 globalSettingsSource, @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 globalSettingsPath, @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 globalSettingsSource, @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 globalSettingsPath, @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
-