don't fail when legacy metadata can't be found due to an error with the repository

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-19 07:50:33 +00:00
parent cbfc69ab90
commit 9cae224e0c
1 changed files with 7 additions and 10 deletions

View File

@ -152,7 +152,7 @@ public abstract class AbstractVersionTransformation
if ( !policy.isEnabled() )
{
getLogger().debug( "resolveMetaData: " + artifact.getId() + ": Skipping disabled repository " +
getLogger().debug( "Legacy metadata: " + artifact.getId() + ": Skipping disabled repository " +
repository.getId() + " (" + repository.getUrl() + ")" );
}
else
@ -185,7 +185,12 @@ public abstract class AbstractVersionTransformation
}
catch ( ResourceDoesNotExistException e )
{
getLogger().debug( "resolveMetaData: Artifact version metadata for: " + artifact.getId() +
getLogger().debug( "Legacy metadata for: " + artifact.getId() +
" could not be found on repository: " + repository.getId(), e );
}
catch ( ArtifactMetadataRetrievalException e )
{
getLogger().warn( "Legacy metadata for: " + artifact.getId() +
" could not be found on repository: " + repository.getId(), e );
}
}
@ -219,14 +224,6 @@ public abstract class AbstractVersionTransformation
return localMetadata != null ? localMetadata.constructVersion() : null;
}
/**
* Select the version to use based on a merged versioning element.
*
* @param versioning the versioning element
* @param defaultVersion the version to select if none is selected from versioning
* @return the version selected
*/
// protected abstract String selectVersion( Versioning versioning, String defaultVersion );
protected abstract LegacyArtifactMetadata createLegacyMetadata( Artifact artifact );
/**