Package org.apache.maven.plugins.invoker
Class PomUtils
- java.lang.Object
-
- org.apache.maven.plugins.invoker.PomUtils
-
class PomUtils extends java.lang.Object
Provides utility methods for POM processing.
-
-
Constructor Summary
Constructors Constructor Description PomUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.maven.model.Model
loadPom(java.io.File pomFile)
Loads the (raw) model from the specified POM file.
-
-
-
Method Detail
-
loadPom
public static org.apache.maven.model.Model loadPom(java.io.File pomFile) throws org.apache.maven.plugin.MojoExecutionException
Loads the (raw) model from the specified POM file.- Parameters:
pomFile
- The path to the POM file to load, must not benull
.- Returns:
- The raw model, never
null
. - Throws:
org.apache.maven.plugin.MojoExecutionException
- If the POM file could not be loaded.
-
-