mirror of https://github.com/apache/maven.git
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:
parent
eb9054adfd
commit
617eebbee3
|
@ -19,18 +19,25 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
|
||||
public class MultipleArtifactsNotFoundException
|
||||
extends ArtifactResolutionException
|
||||
{
|
||||
private final List missingArtifacts;
|
||||
|
||||
public MultipleArtifactsNotFoundException( Artifact originatingArtifact, List artifacts, List remoteRepositories )
|
||||
{
|
||||
super( constructMessage( artifacts ), originatingArtifact, remoteRepositories );
|
||||
this.missingArtifacts = artifacts;
|
||||
}
|
||||
|
||||
public List getMissingArtifacts()
|
||||
{
|
||||
return missingArtifacts;
|
||||
}
|
||||
|
||||
private static String constructMessage( List artifacts )
|
||||
|
|
Loading…
Reference in New Issue