Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PomUtils

        PomUtils()
    • 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 be null.
        Returns:
        The raw model, never null.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the POM file could not be loaded.