@Named @Singleton public class DefaultModelBuilder extends Object implements ModelBuilder
Constructor and Description |
---|
DefaultModelBuilder(ModelProcessor modelProcessor,
ModelValidator modelValidator,
ModelNormalizer modelNormalizer,
ModelInterpolator modelInterpolator,
ModelPathTranslator modelPathTranslator,
ModelUrlNormalizer modelUrlNormalizer,
SuperPomProvider superPomProvider,
InheritanceAssembler inheritanceAssembler,
ProfileSelector profileSelector,
ProfileInjector profileInjector,
PluginManagementInjector pluginManagementInjector,
DependencyManagementInjector dependencyManagementInjector,
DependencyManagementImporter dependencyManagementImporter,
LifecycleBindingsInjector lifecycleBindingsInjector,
PluginConfigurationExpander pluginConfigurationExpander,
ReportConfigurationExpander reportConfigurationExpander,
ReportingConverter reportingConverter,
ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator,
ModelVersionProcessor versionProcessor) |
@Inject public DefaultModelBuilder(ModelProcessor modelProcessor, ModelValidator modelValidator, ModelNormalizer modelNormalizer, ModelInterpolator modelInterpolator, ModelPathTranslator modelPathTranslator, ModelUrlNormalizer modelUrlNormalizer, SuperPomProvider superPomProvider, InheritanceAssembler inheritanceAssembler, ProfileSelector profileSelector, ProfileInjector profileInjector, PluginManagementInjector pluginManagementInjector, DependencyManagementInjector dependencyManagementInjector, DependencyManagementImporter dependencyManagementImporter, @Nullable LifecycleBindingsInjector lifecycleBindingsInjector, PluginConfigurationExpander pluginConfigurationExpander, ReportConfigurationExpander reportConfigurationExpander, ReportingConverter reportingConverter, ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator, ModelVersionProcessor versionProcessor)
@Deprecated public DefaultModelBuilder setModelProcessor(ModelProcessor modelProcessor)
@Deprecated public DefaultModelBuilder setModelValidator(ModelValidator modelValidator)
@Deprecated public DefaultModelBuilder setModelNormalizer(ModelNormalizer modelNormalizer)
@Deprecated public DefaultModelBuilder setModelInterpolator(ModelInterpolator modelInterpolator)
@Deprecated public DefaultModelBuilder setModelPathTranslator(ModelPathTranslator modelPathTranslator)
@Deprecated public DefaultModelBuilder setModelUrlNormalizer(ModelUrlNormalizer modelUrlNormalizer)
@Deprecated public DefaultModelBuilder setSuperPomProvider(SuperPomProvider superPomProvider)
@Deprecated public DefaultModelBuilder setInheritanceAssembler(InheritanceAssembler inheritanceAssembler)
@Deprecated public DefaultModelBuilder setProfileSelector(ProfileSelector profileSelector)
@Deprecated public DefaultModelBuilder setProfileInjector(ProfileInjector profileInjector)
@Deprecated public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector)
@Deprecated public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector dependencyManagementInjector)
@Deprecated public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter dependencyManagementImporter)
@Deprecated public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector)
@Deprecated public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander)
@Deprecated public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander)
@Deprecated public DefaultModelBuilder setReportingConverter(ReportingConverter reportingConverter)
@Deprecated public DefaultModelBuilder setProfileActivationFilePathInterpolator(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator)
public org.apache.maven.model.building.DefaultModelBuilder.DefaultTransformerContextBuilder newTransformerContextBuilder()
newTransformerContextBuilder
in interface ModelBuilder
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–2022 The Apache Software Foundation. All rights reserved.