PR: MNG-122

finish cleanup of resolution exceptions

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-13 12:16:43 +00:00
parent c707f40b35
commit 1499b5dcd3
2 changed files with 7 additions and 4 deletions

View File

@ -162,8 +162,9 @@ public class DefaultArtifactResolver
}
catch ( IOException e )
{
throw new ArtifactResolutionException( "Unable to copy resolved artifact for local use",
artifact, remoteRepositories, e );
throw new ArtifactResolutionException(
"Unable to copy resolved artifact for local use: " + e.getMessage(), artifact,
remoteRepositories, e );
}
}
artifact.setFile( copy );

View File

@ -408,7 +408,8 @@ public class DefaultMavenProjectBuilder
}
catch ( ArtifactResolutionException e )
{
throw new ProjectBuildingException( projectId, "Error getting the POM in the repository", e );
throw new ProjectBuildingException( projectId, "Error getting POM for '" + projectId +
"' from the repository: " + e.getMessage(), e );
}
catch ( ArtifactNotFoundException e )
{
@ -419,7 +420,8 @@ public class DefaultMavenProjectBuilder
}
else
{
throw new ProjectBuildingException( projectId, "POM not found in repository", e );
throw new ProjectBuildingException( projectId, "POM '" + projectId + "' not found in repository: " +
e.getMessage(), e );
}
}
}