@Named @Singleton public class DefaultModelBuilder extends Object implements ModelBuilder
Constructor and Description |
---|
DefaultModelBuilder() |
public DefaultModelBuilder setModelProcessor(ModelProcessor modelProcessor)
public DefaultModelBuilder setModelValidator(ModelValidator modelValidator)
public DefaultModelBuilder setModelNormalizer(ModelNormalizer modelNormalizer)
public DefaultModelBuilder setModelInterpolator(ModelInterpolator modelInterpolator)
public DefaultModelBuilder setModelPathTranslator(ModelPathTranslator modelPathTranslator)
public DefaultModelBuilder setModelUrlNormalizer(ModelUrlNormalizer modelUrlNormalizer)
public DefaultModelBuilder setSuperPomProvider(SuperPomProvider superPomProvider)
public DefaultModelBuilder setProfileSelector(ProfileSelector profileSelector)
public DefaultModelBuilder setProfileInjector(ProfileInjector profileInjector)
public DefaultModelBuilder setInheritanceAssembler(InheritanceAssembler inheritanceAssembler)
public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter depMgmtImporter)
public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector depMgmtInjector)
public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector)
public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander)
public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector)
public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander)
public DefaultModelBuilder setReportingConverter(ReportingConverter reportingConverter)
public ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException
ModelBuilder
build
in interface ModelBuilder
request
- The model building request that holds the parameters, must not be null
.null
.ModelBuildingException
- If the effective model could not be built.protected ModelBuildingResult build(ModelBuildingRequest request, Collection<String> importIds) throws ModelBuildingException
ModelBuildingException
public ModelBuildingResult build(ModelBuildingRequest request, ModelBuildingResult result) throws ModelBuildingException
ModelBuilder
ModelBuilder.build(ModelBuildingRequest)
with ModelBuildingRequest.isTwoPhaseBuilding()
being true
.
The model building request passed to this method must be the same as the one used for the first phase of the
model building.build
in interface ModelBuilder
request
- The model building request that holds the parameters, must not be null
.result
- The interim result of the first phase of model building, must not be null
.null
.ModelBuildingException
- If the effective model could not be built.public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking)
ModelBuilder
ModelBuilder.build(ModelBuildingRequest)
that loads the raw modelbuildRawModel
in interface ModelBuilder
protected boolean hasModelErrors(ModelProblemCollectorExt problems)
protected boolean hasFatalErrors(ModelProblemCollectorExt problems)
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.