From c29e4dbabc5de42ec8f8cf08a8f3e401be16c2d0 Mon Sep 17 00:00:00 2001 From: Vincent Siveton Date: Wed, 24 Aug 2005 10:56:50 +0000 Subject: [PATCH] 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 --- .../maven/report/projectinfo/DependenciesReport.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/maven-plugins/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java b/maven-plugins/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java index 6461fea180..22f047c3bd 100644 --- a/maven-plugins/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java +++ b/maven-plugins/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java @@ -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(),