From 7d8835762cd1bb7d598c663593fba0c1ef8f1d3d Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 1 Feb 2010 21:58:22 +0000 Subject: [PATCH] o Extended debug logging git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@905425 13f79535-47bb-0310-9956-ffa450edef68 --- .../version/internal/DefaultPluginVersionResolver.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java b/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java index ec62b83cec..39b74b6e93 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java @@ -61,6 +61,8 @@ public class DefaultPluginVersionResolver 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 @@ public class DefaultPluginVersionResolver "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; }