Package org.apache.maven.model.building
Interface ModelSource3
- All Superinterfaces:
 ModelSource,ModelSource2,Source
- All Known Implementing Classes:
 FileModelSource
Enhancement to the 
ModelSource2 to support locating POM files using the ModelLocator
 when pointing to a directory.- 
Method Summary
Modifier and TypeMethodDescriptiondefault ModelSource3getRelatedSource(String relPath) Deprecated.getRelatedSource(ModelLocator locator, String relPath) Returns model source identified by a path relative to this model source POM.Methods inherited from interface org.apache.maven.model.building.ModelSource2
getLocationURIMethods inherited from interface org.apache.maven.building.Source
getInputStream, getLocation 
- 
Method Details
- 
getRelatedSource
Returns model source identified by a path relative to this model source POM. Implementation MUST acceptrelPathparameter values that- use either / or \ file path separator
 - have .. parent directory references
 - point either at file or directory
 
ModelLocatorwill be used to find the POM file, else if no locator is provided, a file named 'pom.xml' needs to be used by the requested model source.- Parameters:
 locator- locator used to locate the pom filerelPath- path of the requested model source relative to this model source POM- Returns:
 - related model source or 
nullif no such model source 
 - 
getRelatedSource
Deprecated.usegetRelatedSource(ModelLocator, String)insteadWhen using a ModelSource3, the method with aModelLocatorargument should be used instead.- Specified by:
 getRelatedSourcein interfaceModelSource2- Parameters:
 relPath- is the path of the requested model source relative to this model source POM.- Returns:
 - related model source or 
nullif no such model source. 
 
 - 
 
getRelatedSource(ModelLocator, String)instead