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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondiscoverPoms(Path startDirectory) Discovers and loads all POM files starting from the given directory.
- 
Constructor Details- 
PomDiscoverypublic PomDiscovery()
 
- 
- 
Method Details- 
discoverPomspublic 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
 
 
-