o Extended logging

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-14 10:03:00 +00:00
parent 13a2fba789
commit 57b95421a6
1 changed files with 9 additions and 6 deletions

View File

@ -96,7 +96,8 @@ public void getArtifact( Artifact artifact, ArtifactRepository repository, Trans
// 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 @@ else if ( artifact.isSnapshot() && updateCheckIsRequired )
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 @@ else if ( "pom".equals( artifact.getType() ) && !artifact.getFile().exists() )
// 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 @@ else if ( "pom".equals( artifact.getType() ) && !artifact.getFile().exists() )
throw e;
}
logger.debug( " Artifact " + artifact.getId() + " resolved" );
logger.debug( " Artifact " + artifact.getId() + " resolved to " + artifact.getFile() );
artifact.setResolved( true );
}
@ -155,11 +157,12 @@ else if ( "pom".equals( artifact.getType() ) && !artifact.getFile().exists() )
// 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 );
}