maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r998861 - /maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Date Mon, 20 Sep 2010 09:57:38 GMT
Author: bentmann
Date: Mon Sep 20 09:57:38 2010
New Revision: 998861

URL: http://svn.apache.org/viewvc?rev=998861&view=rev
Log:
[MNG-4818] NPE in legacy.DefaultWagonManager.getArtifact

Modified:
    maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Modified: maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java?rev=998861&r1=998860&r2=998861&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
(original)
+++ maven/maven-3/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Mon Sep 20 09:57:38 2010
@@ -48,8 +48,9 @@ public class DefaultWagonManager
     implements WagonManager
 {
 
+    // NOTE: This must use a different field name than in the super class or IoC has no chance
to inject the loggers
     @Requirement
-    private Logger logger;
+    private Logger log;
 
     @Requirement
     private LegacySupport legacySupport;
@@ -169,7 +170,7 @@ public class DefaultWagonManager
                 id = repository.getId();
             }
 
-            logger.debug( "Using mirror: " + mirror.getUrl() + " (id: " + id + ")" );
+            log.debug( "Using mirror: " + mirror.getUrl() + " (id: " + id + ")" );
 
             repository = artifactRepositoryFactory.createArtifactRepository( id, mirror.getUrl(),
                                                                      repository.getLayout(),
repository.getSnapshots(),



Mime
View raw message