Package org.apache.maven.model.building
Class DefaultModelBuilder
java.lang.Object
org.apache.maven.model.building.DefaultModelBuilder
- All Implemented Interfaces:
ModelBuilder
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultModelBuilder
extends Object
implements ModelBuilder
Deprecated.
-
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, ModelVersionParser versionParser) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ModelBuildingRequest request) Deprecated.Builds the effective model of the specified POM.protected ModelBuildingResult
build
(ModelBuildingRequest request, Collection<String> importIds) Deprecated.build
(ModelBuildingRequest request, ModelBuildingResult result) Deprecated.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) Deprecated.buildRawModel
(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.buildRawModel
(Path pomFile, int validationLevel, boolean locationTracking) Deprecated.Performs only the part ofModelBuilder.build(ModelBuildingRequest)
that loads the raw modelbuildRawModel
(Path pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.buildRawModel
(ModelBuildingRequest request) Deprecated.protected boolean
hasFatalErrors
(ModelProblemCollectorExt problems) Deprecated.protected boolean
hasModelErrors
(ModelProblemCollectorExt problems) Deprecated.org.apache.maven.model.building.DefaultTransformerContextBuilder
Deprecated.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, ModelVersionParser versionParser) Deprecated.
-
-
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 -
setReportingConverter
Deprecated.since Maven 4 -
newTransformerContextBuilder
public org.apache.maven.model.building.DefaultTransformerContextBuilder newTransformerContextBuilder()Deprecated.- Specified by:
newTransformerContextBuilder
in interfaceModelBuilder
-
build
Deprecated.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 Deprecated.- Throws:
ModelBuildingException
-
build
public ModelBuildingResult build(ModelBuildingRequest request, ModelBuildingResult result) throws ModelBuildingException Deprecated.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
Deprecated.- Throws:
ModelBuildingException
-
buildRawModel
@Deprecated public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking) Deprecated.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(Path pomFile, int validationLevel, boolean locationTracking) Deprecated.Description copied from interface:ModelBuilder
Performs only the part ofModelBuilder.build(ModelBuildingRequest)
that loads the raw model- Specified by:
buildRawModel
in interfaceModelBuilder
-
buildRawModel
@Deprecated public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.- Specified by:
buildRawModel
in interfaceModelBuilder
-
buildRawModel
public Result<? extends Model> buildRawModel(Path pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.- Specified by:
buildRawModel
in interfaceModelBuilder
-
hasModelErrors
Deprecated. -
hasFatalErrors
Deprecated.
-
ModelBuilder
instead