Package org.apache.maven.api.services
Interface ModelSource.ModelLocator
- Enclosing interface:
- ModelSource
public static interface ModelSource.ModelLocator
Interface for locating POM files within a project structure.
Implementations of this interface provide the ability to find POM files
in various project contexts.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionlocateExistingPom
(Path project) Attempts to locate an existing POM file at or within the specified project path.
-
Method Details
-
locateExistingPom
Attempts to locate an existing POM file at or within the specified project path.This method is used to find POM files in various contexts, such as:
- Directly at the specified path
- Within a directory at the specified path
- In standard Maven project locations relative to the specified path
- Parameters:
project
- the path to search for a POM file- Returns:
- the path to the located POM file, or null if no POM can be found
- Throws:
NullPointerException
- if project is null
-