Class PomDiscovery
java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.PomDiscovery
Utility class for discovering and loading POM files in a Maven project hierarchy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscoverPoms
(Path startDirectory) Discovers and loads all POM files starting from the given directory.
-
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 filesorg.jdom2.JDOMException
- if there's an error parsing XML
-