Class Maven

java.lang.Object
io.fabric8.maven.Maven

public final class Maven extends Object
Author:
George Gastaldi
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.maven.model.Model
    Create a new Maven Model
    static org.apache.maven.model.Model
    Read the Path as a Model
    static org.apache.maven.model.Model
    A String version that makes it easier to be called from other languages
    static org.apache.maven.model.Model
    Read the Path as a Model
    static void
    writeModel(org.apache.maven.model.Model model)
    Shortcut to writeModel(model,model.getPomFile().toPath());
    static void
    writeModel(org.apache.maven.model.Model model, Path pom)
    Write the Model back to the provided Path

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newModel

      public static org.apache.maven.model.Model newModel()
      Create a new Maven Model
      Returns:
      a new Model
    • readModel

      public static org.apache.maven.model.Model readModel(String path)
      A String version that makes it easier to be called from other languages
      See Also:
    • readModel

      public static org.apache.maven.model.Model readModel(Path pom)
      Read the Path as a Model
      Parameters:
      pom - a path to a pom.xml file
      Returns:
      the maven Model
    • readModel

      public static org.apache.maven.model.Model readModel(Reader rdr)
      Read the Path as a Model
      Parameters:
      rdr - a Reader on the contents of a pom file
      Returns:
      the maven Model
    • writeModel

      public static void writeModel(org.apache.maven.model.Model model)
      Shortcut to writeModel(model,model.getPomFile().toPath());
      Parameters:
      model -
    • writeModel

      public static void writeModel(org.apache.maven.model.Model model, Path pom)
      Write the Model back to the provided Path
      Parameters:
      model -
      pom -