catch ( ProjectBuildingException e )
{
ModelProblem missingParentPom = hasMissingParentPom( e );
if ( missingParentPom != null )
{
throw new ArtifactMetadataRetrievalException( "Failed to process POM for "
+ artifact.getId() + ": " + missingParentPom.getMessage(),
missingParentPom.getException(),
artifact );
}
String message;
if ( isMissingPom( e ) )
{
message = "Missing POM for " + artifact.getId();
}
else if ( isNonTransferrablePom( e ) )
{
throw new ArtifactMetadataRetrievalException( "Failed to retrieve POM for "
+ artifact.getId() + ": " + e.getCause().getMessage(), e.getCause(),
artifact );
}
else
{