Package org.apache.maven.model.building
Class DefaultModelBuilder
java.lang.Object
org.apache.maven.model.building.DefaultModelBuilder
- All Implemented Interfaces:
ModelBuilder
-
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, ModelSourceTransformer transformer) -
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 modelbuildRawModel
(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) buildRawModel
(ModelBuildingRequest request) protected boolean
hasFatalErrors
(ModelProblemCollectorExt problems) protected boolean
hasModelErrors
(ModelProblemCollectorExt problems) org.apache.maven.model.building.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 4setReportingConverter
(ReportingConverter reportingConverter) 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, ModelSourceTransformer transformer)
-
-
Method Details
-
setModelProcessor
Deprecated.since Maven 4- See Also:
-
setModelValidator
Deprecated.since Maven 4- See Also:
-
setModelNormalizer
Deprecated.since Maven 4- See Also:
-
setModelInterpolator
Deprecated.since Maven 4- See Also:
-
setModelPathTranslator
@Deprecated public DefaultModelBuilder setModelPathTranslator(ModelPathTranslator modelPathTranslator) Deprecated.since Maven 4- See Also:
-
setModelUrlNormalizer
Deprecated.since Maven 4- See Also:
-
setSuperPomProvider
Deprecated.since Maven 4- See Also:
-
setInheritanceAssembler
@Deprecated public DefaultModelBuilder setInheritanceAssembler(InheritanceAssembler inheritanceAssembler) Deprecated.since Maven 4- See Also:
-
setProfileSelector
Deprecated.since Maven 4- See Also:
-
setProfileInjector
Deprecated.since Maven 4- See Also:
-
setPluginManagementInjector
@Deprecated public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector) Deprecated.since Maven 4- See Also:
-
setDependencyManagementInjector
@Deprecated public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector dependencyManagementInjector) Deprecated.since Maven 4- See Also:
-
setDependencyManagementImporter
@Deprecated public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter dependencyManagementImporter) Deprecated.since Maven 4- See Also:
-
setLifecycleBindingsInjector
@Deprecated public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector) Deprecated.since Maven 4- See Also:
-
setPluginConfigurationExpander
@Deprecated public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander) Deprecated.since Maven 4- See Also:
-
setReportConfigurationExpander
@Deprecated public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander) Deprecated.since Maven 4- See Also:
-
setProfileActivationFilePathInterpolator
@Deprecated public DefaultModelBuilder setProfileActivationFilePathInterpolator(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator) Deprecated.since Maven 4- See Also:
-
setReportingConverter
Deprecated.since Maven 4- See Also:
-
newTransformerContextBuilder
public org.apache.maven.model.building.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
- Throws:
ModelBuildingException
-
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
-
buildRawModel
public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) - Specified by:
buildRawModel
in interfaceModelBuilder
-
hasModelErrors
-
hasFatalErrors
-