Package org.apache.maven.model.superpom
Class DefaultSuperPomProvider
java.lang.Object
org.apache.maven.model.superpom.DefaultSuperPomProvider
- All Implemented Interfaces:
SuperPomProvider
Provides the super POM that all models implicitly inherit from.
- Author:
- Benjamin Bentmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.api.model.Model
getSuperModel
(String version) Gets the super POM for the specified model version.
-
Constructor Details
-
DefaultSuperPomProvider
-
-
Method Details
-
getSuperModel
Description copied from interface:SuperPomProvider
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.- Specified by:
getSuperModel
in interfaceSuperPomProvider
- 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
.
-