]> source.dussan.org Git - archiva.git/commitdiff
avoid too much log when an artifact is not available in a remote repository
authorOlivier Lamy <olamy@apache.org>
Thu, 12 Apr 2012 20:41:52 +0000 (20:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 12 Apr 2012 20:41:52 +0000 (20:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1325498 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java

index 946e2f610f617a6d1c69e8113bb2e66529561e9e..b71cd7419445eef4f4279ca841c4d3e159e8bd19 100644 (file)
@@ -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;
                 }
             }