Class PomDiscovery

java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.PomDiscovery

public class PomDiscovery extends Object
Utility class for discovering and loading POM files in a Maven project hierarchy.
  • Constructor Details

    • PomDiscovery

      public PomDiscovery()
  • Method Details

    • discoverPoms

      public static Map<Path, org.jdom2.Document> discoverPoms(Path startDirectory) throws IOException, org.jdom2.JDOMException
      Discovers and loads all POM files starting from the given directory.
      Parameters:
      startDirectory - the directory to start discovery from
      Returns:
      a map of Path to Document for all discovered POM files
      Throws:
      IOException - if there's an error reading files
      org.jdom2.JDOMException - if there's an error parsing XML