Interface ModelBuilderResult
- All Superinterfaces:
Result<ModelBuilderRequest>
Result of a project build call.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the external profiles that were active during model building.Gets the profiles that were active during model building.getActivePomProfiles(String modelId) Gets the profiles that were active during model building for a specific model in the hierarchy.Gets a map of all active POM profiles organized by model ID.List<? extends ModelBuilderResult> Gets the children of this result.Gets the assembled model with inheritance, interpolation and profile injection.Gets the file model.Gets the effective model of the parent POM.Gets the problem collector that collected problems encountered during the project building.Gets the file model + build pom transformation, without inheritance nor interpolation.Gets the source from which the model was read.toString()Creates a human-readable representation of these errors.Methods inherited from interface Result
getRequest
-
Method Details
-
getSource
Gets the source from which the model was read.- Returns:
- The source from which the model was read, never
null.
-
getFileModel
-
getRawModel
-
getParentModel
-
getEffectiveModel
-
getActivePomProfiles
-
getActivePomProfiles
Gets the profiles that were active during model building for a specific model in the hierarchy. This allows tracking which profiles came from which model (parent vs child).- Parameters:
modelId- The identifier of the model (groupId:artifactId:version) or empty string for the super POM.- Returns:
- The active profiles for the specified model or an empty list if the model has no active profiles.
- Since:
- 4.0.0
-
getActivePomProfilesByModel
Gets a map of all active POM profiles organized by model ID. The map keys are model IDs (groupId:artifactId:version) and values are lists of active profiles for each model.- Returns:
- A map of model IDs to their active profiles, never
null. - Since:
- 4.0.0
-
getActiveExternalProfiles
Gets the external profiles that were active during model building. External profiles are those that were contributed byModelBuilderRequest.getProfiles().- Returns:
- The active external profiles or an empty list if none, never
null.
-
getProblemCollector
Gets the problem collector that collected problems encountered during the project building.- Returns:
- the problem collector that collected problems encountered during the project building
-
getChildren
Gets the children of this result.- Returns:
- the children of this result, can be empty but never
null
-
toString
-