Package org.apache.maven.model.superpom
Interface SuperPomProvider
-
- All Known Implementing Classes:
DefaultSuperPomProvider
public interface SuperPomProviderProvides the super POM that all models implicitly inherit from.- Author:
- Benjamin Bentmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.maven.model.ModelgetSuperModel(java.lang.String version)Gets the super POM for the specified model version.
-
-
-
Method Detail
-
getSuperModel
org.apache.maven.model.Model getSuperModel(java.lang.String version)
Gets the super POM for the specified model version. The returned model is supposed to be read-only, i.e. if the caller intends to make updates to the model the return value must be cloned before updating to ensure the modifications don't affect future retrievals of the super POM.- Parameters:
version- The model version to retrieve the super POM for (e.g. "4.0.0"), must not benull.- Returns:
- The super POM, never
null.
-
-