Package org.apache.maven.api.services
Interface ModelBuilderResult
Result of a project build call.
- Since:
- 4.0.0
- 
Method SummaryModifier and TypeMethodDescriptionReturns the file model + profile injection.Gets the external profiles that were active during model building.getActivePomProfiles(String modelId) Gets the profiles from the specified model that were active during model building.Gets the assembled model with inheritance, interpolation and profile injection.Gets the file model.Gets the sequence of model identifiers that denote the lineage of models from which the effective model was constructed.Gets the problems that were encountered during the project building.Gets the file model + build pom transformation, without inheritance nor interpolation.getRawModel(String modelId) Gets the specified raw model as it was read from a model source.toString()Creates a human readable representation of these errors.
- 
Method Details- 
getModelIdsGets the sequence of model identifiers that denote the lineage of models from which the effective model was constructed. Model identifiers have the form<groupId>:<artifactId>:<version>. The first identifier from the list denotes the model on which the model builder was originally invoked. The last identifier will always be an empty string that by definition denotes the super POM.- Returns:
- The model identifiers from the lineage of models, never null.
 
- 
getFileModelGets the file model.- Returns:
- the file model, never null.
 
- 
getActivatedFileModelReturns the file model + profile injection.- Returns:
- the activated file model, never null.
 
- 
getRawModelGets the file model + build pom transformation, without inheritance nor interpolation.- Returns:
- The raw model, never null.
 
- 
getEffectiveModelGets the assembled model with inheritance, interpolation and profile injection.- Returns:
- The assembled model, never null.
 
- 
getRawModelGets the specified raw model as it was read from a model source. Apart from basic validation, a raw model has not undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation. The model identifier should be from the collection obtained bygetModelIds(). As a special case, an empty string can be used as the identifier for the super POM.- Parameters:
- modelId- The identifier of the desired raw model, must not be- null.
- Returns:
- The raw model or nullif the specified model id does not refer to a known model.
 
- 
getActivePomProfilesGets the profiles from the specified model that were active during model building. The model identifier should be from the collection obtained bygetModelIds(). As a special case, an empty string can be used as the identifier for the super POM.- Parameters:
- modelId- The identifier of the model whose active profiles should be retrieved, must not be- null.
- Returns:
- The active profiles of the model or an empty list if the specified model id does not refer to a known model or has no active profiles.
 
- 
getActiveExternalProfilesGets 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.
 
- 
getProblemsGets the problems that were encountered during the project building.- Returns:
- the problems that were encountered during the project building, can be empty but never null
 
- 
toStringString toString()Creates a human readable representation of these errors.
 
-