Class DefaultModelBuilder
java.lang.Object
org.apache.maven.internal.impl.model.DefaultModelBuilder
- All Implemented Interfaces:
Service
,ModelBuilder
-
Field Summary
Fields inherited from interface org.apache.maven.api.services.ModelBuilder
VALID_MODEL_VERSIONS
-
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, ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator, ModelTransformer transformer, ModelVersionParser versionParser) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ModelBuilderRequest request) protected ModelBuilderResult
build
(ModelBuilderRequest request, Collection<String> importIds) build
(ModelBuilderRequest request, ModelBuilderResult result) buildRawModel
(Path pomFile, int validationLevel, boolean locationTracking) buildRawModel
(Path pomFile, int validationLevel, boolean locationTracking, ModelTransformerContext context) buildRawModel
(ModelBuilderRequest request) protected boolean
hasFatalErrors
(ModelProblemCollector problems) protected boolean
hasModelErrors
(ModelProblemCollector problems)
-
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, ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator, ModelTransformer transformer, ModelVersionParser versionParser)
-
-
Method Details
-
newTransformerContextBuilder
- Specified by:
newTransformerContextBuilder
in interfaceModelBuilder
-
build
- Specified by:
build
in interfaceModelBuilder
- Throws:
ModelBuilderException
-
build
protected ModelBuilderResult build(ModelBuilderRequest request, Collection<String> importIds) throws ModelBuilderException - Throws:
ModelBuilderException
-
build
public ModelBuilderResult build(ModelBuilderRequest request, ModelBuilderResult result) throws ModelBuilderException - Throws:
ModelBuilderException
-
buildRawModel
- Specified by:
buildRawModel
in interfaceModelBuilder
- Throws:
ModelBuilderException
-
buildRawModel
-
buildRawModel
public Result<? extends Model> buildRawModel(Path pomFile, int validationLevel, boolean locationTracking, ModelTransformerContext context) -
hasModelErrors
-
hasFatalErrors
-