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.
- Since:
- 4.0.0
- 
Method SummaryModifier and TypeMethodDescriptionbuild(SettingsBuilderRequest request) Builds the effective settings of the specified settings files.default SettingsBuilderResultBuilds the effective settings of the specified settings paths.default SettingsBuilderResultBuilds the effective settings of the specified settings paths.default SettingsBuilderResultBuilds the effective settings of the specified settings sources.default SettingsBuilderResultbuild(Session session, Source globalSettingsSource, 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- 
buildBuilds the effective settings of the specified settings files.- Parameters:
- request- the settings building request that holds the parameters, must not be- null
- 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
 
- 
validateValidate the specified settings.- Parameters:
- settings- The settings to validate, must not be- null.
- Returns:
- The list of problems that were encountered, must not be null.
 
- 
validateValidate the specified settings.- Parameters:
- settings- The settings to validate, must not be- null.
- isProjectSettings- Boolean indicating if the validation is for project settings or user / global settings.
- Returns:
- The list of problems that were encountered, must not be null.
 
- 
convertConvert a model profile to a settings profile.
- 
convertConvert a settings profile to a model profile.
 
-