Class PomUtils

java.lang.Object
com.soebes.itf.maven.plugin.PomUtils

class PomUtils extends Object
Provides utility methods for POM processing.
Author:
Benjamin Bentmann
  • Constructor Details

    • PomUtils

      PomUtils()
  • Method Details

    • loadPom

      public static org.apache.maven.model.Model loadPom(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.