mirror of https://github.com/apache/maven.git
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 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue