mirror of https://github.com/apache/maven.git
[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
This commit is contained in:
parent
aa68fb033b
commit
14094c260b
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue