MNG-2884 Get a list of the missing artifacts from the exception.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-06-02 18:01:19 +00:00
parent eb9054adfd
commit 617eebbee3
1 changed files with 11 additions and 4 deletions

View File

@ -19,18 +19,25 @@
* under the License. * under the License.
*/ */
import org.apache.maven.artifact.Artifact;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.apache.maven.artifact.Artifact;
public class MultipleArtifactsNotFoundException public class MultipleArtifactsNotFoundException
extends ArtifactResolutionException extends ArtifactResolutionException
{ {
private final List missingArtifacts;
public MultipleArtifactsNotFoundException( Artifact originatingArtifact, List artifacts, List remoteRepositories ) public MultipleArtifactsNotFoundException( Artifact originatingArtifact, List artifacts, List remoteRepositories )
{ {
super( constructMessage( artifacts ), originatingArtifact, remoteRepositories ); super( constructMessage( artifacts ), originatingArtifact, remoteRepositories );
this.missingArtifacts = artifacts;
}
public List getMissingArtifacts()
{
return missingArtifacts;
} }
private static String constructMessage( List artifacts ) private static String constructMessage( List artifacts )