org.apache.maven.artifact.resolver
Class MultipleArtifactsNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
              extended by org.apache.maven.artifact.resolver.ArtifactResolutionException
                  extended by org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
All Implemented Interfaces:
Serializable

public class MultipleArtifactsNotFoundException
extends ArtifactResolutionException

Exception caused when one or more artifacts can not be resolved because they are not found in the local or remote repositories.

See Also:
Serialized Form

Constructor Summary
MultipleArtifactsNotFoundException(Artifact originatingArtifact, List<Artifact> resolvedArtifacts, List<Artifact> missingArtifacts, List<ArtifactRepository> remoteRepositories)
          Create an instance of the exception with allrequired information.
MultipleArtifactsNotFoundException(Artifact originatingArtifact, List<Artifact> missingArtifacts, List<ArtifactRepository> remoteRepositories)
          Deprecated. use MultipleArtifactsNotFoundException(Artifact, List, List, List)
 
Method Summary
 List<Artifact> getMissingArtifacts()
          artifacts that could NOT be resolved
 List<Artifact> getResolvedArtifacts()
          artifacts that could be resolved
 
Methods inherited from class org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
constructArtifactPath, constructMissingArtifactMessage, getArtifact, getArtifactId, getArtifactPath, getClassifier, getGroupId, getOriginalMessage, getPath, getRemoteRepositories, getType, getVersion
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipleArtifactsNotFoundException

@Deprecated
public MultipleArtifactsNotFoundException(Artifact originatingArtifact,
                                                     List<Artifact> missingArtifacts,
                                                     List<ArtifactRepository> remoteRepositories)
Deprecated. use MultipleArtifactsNotFoundException(Artifact, List, List, List)


MultipleArtifactsNotFoundException

public MultipleArtifactsNotFoundException(Artifact originatingArtifact,
                                          List<Artifact> resolvedArtifacts,
                                          List<Artifact> missingArtifacts,
                                          List<ArtifactRepository> remoteRepositories)
Create an instance of the exception with allrequired information.

Parameters:
originatingArtifact - the artifact that was being resolved
resolvedArtifacts - artifacts that could be resolved
missingArtifacts - artifacts that could not be resolved
remoteRepositories - remote repositories where the missing artifacts were not found
Method Detail

getResolvedArtifacts

public List<Artifact> getResolvedArtifacts()
artifacts that could be resolved

Returns:
List of Artifact

getMissingArtifacts

public List<Artifact> getMissingArtifacts()
artifacts that could NOT be resolved

Returns:
List of Artifact


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.