Class MultipleArtifactsNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
-
- org.apache.maven.artifact.resolver.ArtifactResolutionException
-
- org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List
missingArtifacts
private java.util.List
resolvedArtifacts
-
Fields inherited from class org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
LS
-
-
Constructor Summary
Constructors Constructor Description MultipleArtifactsNotFoundException(Artifact originatingArtifact, java.util.List missingArtifacts, java.util.List remoteRepositories)
Deprecated.MultipleArtifactsNotFoundException(Artifact originatingArtifact, java.util.List resolvedArtifacts, java.util.List missingArtifacts, java.util.List remoteRepositories)
Create an instance of the exception with allrequired information.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
constructMessage(java.util.List artifacts)
java.util.List
getMissingArtifacts()
artifacts that could NOT be resolvedjava.util.List
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
-
-
-
-
Constructor Detail
-
MultipleArtifactsNotFoundException
public MultipleArtifactsNotFoundException(Artifact originatingArtifact, java.util.List missingArtifacts, java.util.List remoteRepositories)
Deprecated.
-
MultipleArtifactsNotFoundException
public MultipleArtifactsNotFoundException(Artifact originatingArtifact, java.util.List resolvedArtifacts, java.util.List missingArtifacts, java.util.List remoteRepositories)
Create an instance of the exception with allrequired information.- Parameters:
originatingArtifact
- the artifact that was being resolvedresolvedArtifacts
- artifacts that could be resolvedmissingArtifacts
- artifacts that could not be resolvedremoteRepositories
- remote repositories where the missing artifacts were not found
-
-
Method Detail
-
getResolvedArtifacts
public java.util.List getResolvedArtifacts()
artifacts that could be resolved- Returns:
List
ofArtifact
-
getMissingArtifacts
public java.util.List getMissingArtifacts()
artifacts that could NOT be resolved- Returns:
List
ofArtifact
-
constructMessage
private static java.lang.String constructMessage(java.util.List artifacts)
-
-