Package org.apache.maven.model.building
Interface ModelBuilder
- All Known Implementing Classes:
DefaultModelBuilder
Deprecated.
Builds the effective model from a POM.
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ModelBuildingRequest request) Deprecated.Builds the effective model of the specified POM.build
(ModelBuildingRequest request, ModelBuildingResult result) Deprecated.Builds the effective model by completing the specified interim result which was produced by a previous call tobuild(ModelBuildingRequest)
withModelBuildingRequest.isTwoPhaseBuilding()
beingtrue
.buildRawModel
(File pomFile, int validationLevel, boolean locationTracking) Deprecated.UsebuildRawModel(Path, int, boolean)
instead.buildRawModel
(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.buildRawModel
(Path pomFile, int validationLevel, boolean locationTracking) Deprecated.Performs only the part ofbuild(ModelBuildingRequest)
that loads the raw modelbuildRawModel
(Path pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.Deprecated.
-
Method Details
-
build
Deprecated.Builds the effective model of the specified POM.- 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
ModelBuildingResult build(ModelBuildingRequest request, ModelBuildingResult result) throws ModelBuildingException Deprecated.Builds the effective model by completing the specified interim result which was produced by a previous call tobuild(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.- 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 Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking) Deprecated.UsebuildRawModel(Path, int, boolean)
instead.Performs only the part ofbuild(ModelBuildingRequest)
that loads the raw model -
buildRawModel
Deprecated.Performs only the part ofbuild(ModelBuildingRequest)
that loads the raw model- Since:
- 4.0.0
-
buildRawModel
@Deprecated Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated. -
buildRawModel
Result<? extends Model> buildRawModel(Path pomFile, int validationLevel, boolean locationTracking, TransformerContext context) Deprecated.- Since:
- 4.0.0
-
newTransformerContextBuilder
TransformerContextBuilder newTransformerContextBuilder()Deprecated.
-
ModelBuilder
instead