o Extended debug logging

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@905425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-02-01 21:58:22 +00:00
parent 1df9413fd4
commit 7d8835762c
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}