mirror of https://github.com/apache/maven.git
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:
parent
c707f40b35
commit
1499b5dcd3
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue