mirror of
https://github.com/apache/maven.git
synced 2025-03-04 15:49:34 +00:00
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:
parent
e888e3c1af
commit
dbfa3f51db
@ -73,7 +73,7 @@ protected String resolveVersion( Artifact artifact, ArtifactRepository localRepo
|
||||
ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots()
|
||||
: repository.getReleases();
|
||||
|
||||
if ( !policy.isEnabled() )
|
||||
if ( policy == null || !policy.isEnabled() )
|
||||
{
|
||||
getLogger().debug( "Skipping disabled repository " + repository.getId() );
|
||||
}
|
||||
@ -98,9 +98,8 @@ protected String resolveVersion( Artifact artifact, ArtifactRepository localRepo
|
||||
}
|
||||
catch ( ResourceDoesNotExistException e )
|
||||
{
|
||||
getLogger().debug(
|
||||
"Artifact version metadata for: " + artifact.getId()
|
||||
+ " could not be found on repository: " + repository.getId(), e );
|
||||
getLogger().debug( "Artifact version metadata for: " + artifact.getId() +
|
||||
" could not be found on repository: " + repository.getId(), e );
|
||||
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user