Class AbstractArtifactResolutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArtifactNotFoundException
,ArtifactResolutionException
,PluginNotFoundException
public class AbstractArtifactResolutionException extends Exception
Base class for artifact resolution exceptions.- Author:
- Brett Porter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractArtifactResolutionException(String message, String groupId, String artifactId, String version, String type, String classifier, List<ArtifactRepository> remoteRepositories, List<String> path)
protected
AbstractArtifactResolutionException(String message, String groupId, String artifactId, String version, String type, String classifier, List<ArtifactRepository> remoteRepositories, List<String> path, Throwable t)
protected
AbstractArtifactResolutionException(String message, Artifact artifact)
protected
AbstractArtifactResolutionException(String message, Artifact artifact, List<ArtifactRepository> remoteRepositories)
protected
AbstractArtifactResolutionException(String message, Artifact artifact, List<ArtifactRepository> remoteRepositories, Throwable t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
constructArtifactPath(List<String> path, String indentation)
protected static String
constructMissingArtifactMessage(String message, String indentation, String groupId, String artifactId, String version, String type, String classifier, String downloadUrl, List<String> path)
Artifact
getArtifact()
String
getArtifactId()
String
getArtifactPath()
String
getClassifier()
String
getGroupId()
String
getOriginalMessage()
String
getPath()
List<ArtifactRepository>
getRemoteRepositories()
String
getType()
String
getVersion()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AbstractArtifactResolutionException
protected AbstractArtifactResolutionException(String message, String groupId, String artifactId, String version, String type, String classifier, List<ArtifactRepository> remoteRepositories, List<String> path)
-
AbstractArtifactResolutionException
protected AbstractArtifactResolutionException(String message, String groupId, String artifactId, String version, String type, String classifier, List<ArtifactRepository> remoteRepositories, List<String> path, Throwable t)
-
AbstractArtifactResolutionException
protected AbstractArtifactResolutionException(String message, Artifact artifact)
-
AbstractArtifactResolutionException
protected AbstractArtifactResolutionException(String message, Artifact artifact, List<ArtifactRepository> remoteRepositories)
-
AbstractArtifactResolutionException
protected AbstractArtifactResolutionException(String message, Artifact artifact, List<ArtifactRepository> remoteRepositories, Throwable t)
-
-
Method Detail
-
getArtifact
public Artifact getArtifact()
-
getGroupId
public String getGroupId()
-
getArtifactId
public String getArtifactId()
-
getVersion
public String getVersion()
-
getType
public String getType()
-
getClassifier
public String getClassifier()
- Returns:
- the classifier
-
getPath
public String getPath()
- Returns:
- the path
-
getRemoteRepositories
public List<ArtifactRepository> getRemoteRepositories()
-
getOriginalMessage
public String getOriginalMessage()
-
constructArtifactPath
protected static String constructArtifactPath(List<String> path, String indentation)
-
constructMissingArtifactMessage
protected static String constructMissingArtifactMessage(String message, String indentation, String groupId, String artifactId, String version, String type, String classifier, String downloadUrl, List<String> path)
-
getArtifactPath
public String getArtifactPath()
-
-