MNG-754: Added artifact information in the exception

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@239599 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vincent Siveton 2005-08-24 10:56:50 +00:00
parent 7c55d5cfb2
commit c29e4dbabc
1 changed files with 7 additions and 4 deletions

View File

@ -233,8 +233,9 @@ public class DependenciesReport
}
catch ( ProjectBuildingException e )
{
throw new IllegalArgumentException(
"Can't find a valid Maven project in the repository for the artifact [" + artifact + "]." );
throw new IllegalArgumentException( "Can't find a valid Maven project in the repository for the artifact ["
+ artifact.getGroupId() + ":" + artifact.getArtifactId()
+ ":" + artifact.getVersion() + "]." );
}
tableRow( new String[]{artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
@ -275,8 +276,10 @@ public class DependenciesReport
}
catch ( ProjectBuildingException e )
{
throw new IllegalArgumentException(
"Can't find a valid Maven project in the repository for the artifact [" + artifact + "]." );
throw new IllegalArgumentException( "Can't find a valid Maven project in the repository for the artifact ["
+ artifact.getGroupId() + ":"
+ artifact.getArtifactId() + ":"
+ artifact.getVersion() + "]." );
}
tableRow( new String[]{artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
artifactProject.getDescription(),