summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/maven2-repository/src/main
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-04-12 20:41:52 +0000
committerOlivier Lamy <olamy@apache.org>2012-04-12 20:41:52 +0000
commitc0ec48e2a812125b188f8b976f41822bbeb220c1 (patch)
treedd7c8519fa7932a7cdab340da5d0f0509c12a24c /archiva-modules/plugins/maven2-repository/src/main
parent11f78cf148d91c99c1be7d11452c08b701a7b85f (diff)
downloadarchiva-c0ec48e2a812125b188f8b976f41822bbeb220c1.tar.gz
archiva-c0ec48e2a812125b188f8b976f41822bbeb220c1.zip
avoid too much log when an artifact is not available in a remote repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1325498 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/maven2-repository/src/main')
-rw-r--r--archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java
index 946e2f610..b71cd7419 100644
--- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java
+++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java
@@ -134,10 +134,17 @@ public class RepositoryModelResolver
break;
}
}
+ catch ( ResourceDoesNotExistException e )
+ {
+ log.info( "An exception was caught while attempting to retrieve model '" + model.getAbsolutePath()
+ + "' from remote repository '" + remoteRepository.getId() + "'.Reason:"
+ + e.getMessage() );
+ }
catch ( Exception e )
{
log.warn( "An exception was caught while attempting to retrieve model '" + model.getAbsolutePath()
- + "' from remote repository '" + remoteRepository.getId() + "'.", e );
+ + "' from remote repository '" + remoteRepository.getId() + "'.", e.getMessage() );
+
continue;
}
}