Package org.apache.maven.model.building
Class DefaultModelBuilder
java.lang.Object
org.apache.maven.model.building.DefaultModelBuilder
- All Implemented Interfaces:
ModelBuilder
- Author:
- Benjamin Bentmann
-
Constructor Summary
ConstructorDescriptionDefaultModelBuilder
(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, ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator, ModelVersionProcessor versionProcessor) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ModelBuildingRequest request) Builds the effective model of the specified POM.protected ModelBuildingResult
build
(ModelBuildingRequest request, Collection<String> importIds) build
(ModelBuildingRequest request, ModelBuildingResult result) Builds the effective model by completing the specified interim result which was produced by a previous call toModelBuilder.build(ModelBuildingRequest)
withModelBuildingRequest.isTwoPhaseBuilding()
beingtrue
.buildRawModel
(File pomFile, int validationLevel, boolean locationTracking) Performs only the part ofModelBuilder.build(ModelBuildingRequest)
that loads the raw modelprotected boolean
hasFatalErrors
(ModelProblemCollectorExt problems) protected boolean
hasModelErrors
(ModelProblemCollectorExt problems) org.apache.maven.model.building.DefaultModelBuilder.DefaultTransformerContextBuilder
setDependencyManagementImporter
(DependencyManagementImporter dependencyManagementImporter) Deprecated.since Maven 4setDependencyManagementInjector
(DependencyManagementInjector dependencyManagementInjector) Deprecated.since Maven 4setInheritanceAssembler
(InheritanceAssembler inheritanceAssembler) Deprecated.since Maven 4setLifecycleBindingsInjector
(LifecycleBindingsInjector lifecycleBindingsInjector) Deprecated.since Maven 4setModelInterpolator
(ModelInterpolator modelInterpolator) Deprecated.since Maven 4setModelNormalizer
(ModelNormalizer modelNormalizer) Deprecated.since Maven 4setModelPathTranslator
(ModelPathTranslator modelPathTranslator) Deprecated.since Maven 4setModelProcessor
(ModelProcessor modelProcessor) Deprecated.since Maven 4setModelUrlNormalizer
(ModelUrlNormalizer modelUrlNormalizer) Deprecated.since Maven 4setModelValidator
(ModelValidator modelValidator) Deprecated.since Maven 4setPluginConfigurationExpander
(PluginConfigurationExpander pluginConfigurationExpander) Deprecated.since Maven 4setPluginManagementInjector
(PluginManagementInjector pluginManagementInjector) Deprecated.since Maven 4setProfileActivationFilePathInterpolator
(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator) Deprecated.since Maven 4setProfileInjector
(ProfileInjector profileInjector) Deprecated.since Maven 4setProfileSelector
(ProfileSelector profileSelector) Deprecated.since Maven 4setReportConfigurationExpander
(ReportConfigurationExpander reportConfigurationExpander) Deprecated.since Maven 4setSuperPomProvider
(SuperPomProvider superPomProvider) Deprecated.since Maven 4
-
Constructor Details
-
DefaultModelBuilder
@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, ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator, ModelVersionProcessor versionProcessor)
-
-
Method Details
-
setModelProcessor
Deprecated.since Maven 4 -
setModelValidator
Deprecated.since Maven 4 -
setModelNormalizer
Deprecated.since Maven 4 -
setModelInterpolator
Deprecated.since Maven 4 -
setModelPathTranslator
@Deprecated public DefaultModelBuilder setModelPathTranslator(ModelPathTranslator modelPathTranslator) Deprecated.since Maven 4 -
setModelUrlNormalizer
Deprecated.since Maven 4 -
setSuperPomProvider
Deprecated.since Maven 4 -
setInheritanceAssembler
@Deprecated public DefaultModelBuilder setInheritanceAssembler(InheritanceAssembler inheritanceAssembler) Deprecated.since Maven 4 -
setProfileSelector
Deprecated.since Maven 4 -
setProfileInjector
Deprecated.since Maven 4 -
setPluginManagementInjector
@Deprecated public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector) Deprecated.since Maven 4 -
setDependencyManagementInjector
@Deprecated public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector dependencyManagementInjector) Deprecated.since Maven 4 -
setDependencyManagementImporter
@Deprecated public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter dependencyManagementImporter) Deprecated.since Maven 4 -
setLifecycleBindingsInjector
@Deprecated public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector) Deprecated.since Maven 4 -
setPluginConfigurationExpander
@Deprecated public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander) Deprecated.since Maven 4 -
setReportConfigurationExpander
@Deprecated public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander) Deprecated.since Maven 4 -
setProfileActivationFilePathInterpolator
@Deprecated public DefaultModelBuilder setProfileActivationFilePathInterpolator(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator) Deprecated.since Maven 4 -
newTransformerContextBuilder
public org.apache.maven.model.building.DefaultModelBuilder.DefaultTransformerContextBuilder newTransformerContextBuilder()- Specified by:
newTransformerContextBuilder
in interfaceModelBuilder
-
build
Description copied from interface:ModelBuilder
Builds the effective model of the specified POM.- Specified by:
build
in interfaceModelBuilder
- Parameters:
request
- The model building request that holds the parameters, must not benull
.- Returns:
- The result of the model building, never
null
. - Throws:
ModelBuildingException
- If the effective model could not be built.
-
build
protected ModelBuildingResult build(ModelBuildingRequest request, Collection<String> importIds) throws ModelBuildingException - Throws:
ModelBuildingException
-
build
public ModelBuildingResult build(ModelBuildingRequest request, ModelBuildingResult result) throws ModelBuildingException Description copied from interface:ModelBuilder
Builds the effective model by completing the specified interim result which was produced by a previous call toModelBuilder.build(ModelBuildingRequest)
withModelBuildingRequest.isTwoPhaseBuilding()
beingtrue
. The model building request passed to this method must be the same as the one used for the first phase of the model building.- Specified by:
build
in interfaceModelBuilder
- Parameters:
request
- The model building request that holds the parameters, must not benull
.result
- The interim result of the first phase of model building, must not benull
.- Returns:
- The result of the model building, never
null
. - Throws:
ModelBuildingException
- If the effective model could not be built.
-
buildRawModel
public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking) Description copied from interface:ModelBuilder
Performs only the part ofModelBuilder.build(ModelBuildingRequest)
that loads the raw model- Specified by:
buildRawModel
in interfaceModelBuilder
-
hasModelErrors
-
hasFatalErrors
-