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 SummaryModifier 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.ModelSource2getLocationURIMethods inherited from interface org.apache.maven.building.SourcegetInputStream, getLocation
- 
Method Details- 
getRelatedSourceReturns 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 file
- relPath- path of the requested model source relative to this model source POM
- Returns:
- related model source or nullif no such model source
 
- 
getRelatedSourceDeprecated.usegetRelatedSource(ModelLocator, String)insteadWhen using a ModelSource3, the method with aModelLocatorargument should be used instead.- Specified by:
- getRelatedSourcein interface- ModelSource2
- 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