maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r905425 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java
Date Mon, 01 Feb 2010 21:58:22 GMT
Author: bentmann
Date: Mon Feb  1 21:58:22 2010
New Revision: 905425

URL: http://svn.apache.org/viewvc?rev=905425&view=rev
Log:
o Extended debug logging

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java?rev=905425&r1=905424&r2=905425&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java
Mon Feb  1 21:58:22 2010
@@ -61,6 +61,8 @@
     public PluginVersionResult resolve( PluginVersionRequest request )
         throws PluginVersionResolutionException
     {
+        logger.debug( "Resolving plugin version for " + request.getGroupId() + ":" + request.getArtifactId()
);
+
         DefaultPluginVersionResult result = new DefaultPluginVersionResult();
 
         Metadata mergedMetadata = new Metadata();
@@ -153,6 +155,13 @@
                                                         "Plugin not found in any plugin repository"
);
         }
 
+        if ( logger.isDebugEnabled() )
+        {
+            logger.debug( "Resolved plugin version for " + request.getGroupId() + ":" + request.getArtifactId()
+                + " to " + result.getVersion() + " from repository "
+                + ( result.getRepository() != null ? result.getRepository().getId() : "null"
) );
+        }
+
         return result;
     }
 



Mime
View raw message