From dbfa3f51db4029dbef72588067941d65e4cd7cf5 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Fri, 19 Aug 2005 23:10:56 +0000 Subject: [PATCH] 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 --- .../artifact/transform/AbstractVersionTransformation.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java index 7b6ab2a730..a7c791b1f1 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java @@ -73,7 +73,7 @@ public abstract class AbstractVersionTransformation 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 @@ public abstract class AbstractVersionTransformation } 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; }