Class DefaultModelBuilder
java.lang.Object
org.apache.maven.internal.impl.model.DefaultModelBuilder
- All Implemented Interfaces:
Service
,ModelBuilder
The model builder is responsible for building the
Model
from the POM file.
There are two ways to main use cases: the first one is to build the model from a POM file
on the file system in order to actually build the project. The second one is to build the
model for a dependency or an external parent.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from interface org.apache.maven.api.services.ModelBuilder
ModelBuilder.ModelBuilderSession
-
Field Summary
Fields inherited from interface org.apache.maven.api.services.ModelBuilder
MODEL_VERSION_4_0_0, MODEL_VERSION_4_1_0, 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, PluginConfigurationExpander pluginConfigurationExpander, ModelVersionParser versionParser, List<ModelTransformer> transformers, ModelCacheFactory modelCacheFactory, ModelResolver modelResolver, Interpolator interpolator, PathTranslator pathTranslator, RootLocator rootLocator) -
Method Summary
-
Field Details
-
NAMESPACE_PREFIX
- See Also:
-
-
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, PluginConfigurationExpander pluginConfigurationExpander, ModelVersionParser versionParser, List<ModelTransformer> transformers, ModelCacheFactory modelCacheFactory, ModelResolver modelResolver, Interpolator interpolator, PathTranslator pathTranslator, RootLocator rootLocator)
-
-
Method Details
-
newSession
- Specified by:
newSession
in interfaceModelBuilder
-
buildRawModel
- Specified by:
buildRawModel
in interfaceModelBuilder
- Throws:
ModelBuilderException
-