mirror of https://github.com/apache/maven.git
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:
parent
7c55d5cfb2
commit
c29e4dbabc
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue