From 57b95421a6952a1aab09307b0734c38c41df435f Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 14 Sep 2009 10:03:00 +0000 Subject: [PATCH] o Extended logging git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814552 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/legacy/DefaultWagonManager.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 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 b9196c4308..0e9fbb0a69 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 @@ -96,7 +96,8 @@ public class DefaultWagonManager // 2. If the updateInterval has been exceeded since the last check for this artifact on this repository, then check. else if ( artifact.isSnapshot() && updateCheckIsRequired ) { - logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() ); + logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() + + " from " + remotePath ); try { @@ -107,7 +108,7 @@ public class DefaultWagonManager updateCheckManager.touch( artifact, repository ); } - logger.debug( " Artifact " + artifact.getId() + " resolved" ); + logger.debug( " Artifact " + artifact.getId() + " resolved to " + artifact.getFile() ); artifact.setResolved( true ); } @@ -121,7 +122,8 @@ public class DefaultWagonManager // if POM is not present locally, try and get it if it's forced, out of date, or has not been attempted yet if ( updateCheckManager.isPomUpdateRequired( artifact, repository ) ) { - logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() ); + logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() + + " from " + remotePath ); try { @@ -135,7 +137,7 @@ public class DefaultWagonManager throw e; } - logger.debug( " Artifact " + artifact.getId() + " resolved" ); + logger.debug( " Artifact " + artifact.getId() + " resolved to " + artifact.getFile() ); artifact.setResolved( true ); } @@ -155,11 +157,12 @@ public class DefaultWagonManager // don't write touch-file for release artifacts. else if ( !artifact.isSnapshot() ) { - logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() ); + logger.debug( "Trying repository " + repository.getId() + " for resolution of " + artifact.getId() + + " from " + remotePath ); getRemoteFile( repository, artifact.getFile(), remotePath, downloadMonitor, policy.getChecksumPolicy(), false ); - logger.debug( " Artifact " + artifact.getId() + " resolved" ); + logger.debug( " Artifact " + artifact.getId() + " resolved to " + artifact.getFile() ); artifact.setResolved( true ); }