From 14094c260ba2658be5f70255b9785729ecb8fb69 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 30 Mar 2010 21:26:59 +0000 Subject: [PATCH] [MNG-3477] Authentication failures on dependency download aren't reported git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@929299 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/legacy/DefaultWagonManager.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java b/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java index 9edfa6c320..3bd49a69e8 100644 --- a/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java +++ b/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java @@ -140,15 +140,24 @@ public class DefaultWagonManager // This one we will eat when looking through remote repositories // because we want to cycle through them all before squawking. - logger.debug( "Unable to find resource '" + artifact.getId() + "' in repository " + repository.getId() + logger.debug( "Unable to find artifact " + artifact.getId() + " in repository " + repository.getId() + " (" + repository.getUrl() + ")", e ); } catch ( TransferFailedException e ) { tfe = e; - logger.debug( "Unable to get resource '" + artifact.getId() + "' from repository " + repository.getId() - + " (" + repository.getUrl() + ")", e ); + String msg = + "Unable to get artifact " + artifact.getId() + " from repository " + repository.getId() + " (" + + repository.getUrl() + "): " + e.getMessage(); + if ( logger.isDebugEnabled() ) + { + logger.warn( msg, e ); + } + else + { + logger.warn( msg ); + } } }