allow no policy (usually used in tests)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-08-19 23:10:56 +00:00
parent e888e3c1af
commit dbfa3f51db
1 changed files with 3 additions and 4 deletions

View File

@ -73,7 +73,7 @@ public abstract class AbstractVersionTransformation
ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots()
: repository.getReleases(); : repository.getReleases();
if ( !policy.isEnabled() ) if ( policy == null || !policy.isEnabled() )
{ {
getLogger().debug( "Skipping disabled repository " + repository.getId() ); getLogger().debug( "Skipping disabled repository " + repository.getId() );
} }
@ -98,9 +98,8 @@ public abstract class AbstractVersionTransformation
} }
catch ( ResourceDoesNotExistException e ) catch ( ResourceDoesNotExistException e )
{ {
getLogger().debug( getLogger().debug( "Artifact version metadata for: " + artifact.getId() +
"Artifact version metadata for: " + artifact.getId() " could not be found on repository: " + repository.getId(), e );
+ " could not be found on repository: " + repository.getId(), e );
continue; continue;
} }