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
-
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) setDependencyManagementImporter
(DependencyManagementImporter depMgmtImporter) setDependencyManagementInjector
(DependencyManagementInjector depMgmtInjector) setInheritanceAssembler
(InheritanceAssembler inheritanceAssembler) setLifecycleBindingsInjector
(LifecycleBindingsInjector lifecycleBindingsInjector) setModelInterpolator
(ModelInterpolator modelInterpolator) setModelNormalizer
(ModelNormalizer modelNormalizer) setModelPathTranslator
(ModelPathTranslator modelPathTranslator) setModelProcessor
(ModelProcessor modelProcessor) setModelUrlNormalizer
(ModelUrlNormalizer modelUrlNormalizer) setModelValidator
(ModelValidator modelValidator) setPluginConfigurationExpander
(PluginConfigurationExpander pluginConfigurationExpander) setPluginManagementInjector
(PluginManagementInjector pluginManagementInjector) setProfileActivationFilePathInterpolator
(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator) setProfileInjector
(ProfileInjector profileInjector) setProfileSelector
(ProfileSelector profileSelector) setReportConfigurationExpander
(ReportConfigurationExpander reportConfigurationExpander) setReportingConverter
(ReportingConverter reportingConverter) setSuperPomProvider
(SuperPomProvider superPomProvider)
-
Constructor Details
-
DefaultModelBuilder
public DefaultModelBuilder()
-
-
Method Details
-
setModelProcessor
-
setModelValidator
-
setModelNormalizer
-
setModelInterpolator
-
setModelPathTranslator
-
setModelUrlNormalizer
-
setSuperPomProvider
-
setProfileSelector
-
setProfileInjector
-
setInheritanceAssembler
-
setDependencyManagementImporter
public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter depMgmtImporter) -
setDependencyManagementInjector
public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector depMgmtInjector) -
setLifecycleBindingsInjector
public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector) -
setPluginConfigurationExpander
public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander) -
setPluginManagementInjector
public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector) -
setReportConfigurationExpander
public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander) -
setReportingConverter
-
setProfileActivationFilePathInterpolator
public DefaultModelBuilder setProfileActivationFilePathInterpolator(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator) -
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
-