File pom;
File artifact;
if ( file.getName().endsWith( ".pom" ) )
{
ArtifactLocator al = new ArtifactLocator( mapper );
artifact = al.locate( file, context.getGavCalculator(), gav );
// If we found the matching artifact, switch over to indexing that, instead of the pom
if ( artifact != null )
{
gav = getGavFromPath( context, repositoryPath, artifact.getAbsolutePath() );