Package org.apache.maven.project
Class DuplicateArtifactAttachmentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.maven.project.DuplicateArtifactAttachmentException
-
- All Implemented Interfaces:
Serializable
public class DuplicateArtifactAttachmentException extends RuntimeException
This exception is thrown if an application attempts to attach two of the same artifacts to a single project.- Author:
- pgier, jdcasey TODO Make this a checked exception, and modify the API of MavenProjectHelper. Currently, this modification would create compatibility problems for existing plugins.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateArtifactAttachmentException(MavenProject project, Artifact artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifact
getArtifact()
MavenProject
getProject()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DuplicateArtifactAttachmentException
public DuplicateArtifactAttachmentException(MavenProject project, Artifact artifact)
-
-
Method Detail
-
getProject
public MavenProject getProject()
-
getArtifact
public Artifact getArtifact()
-
-