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:
java.io.Serializable
public class DuplicateArtifactAttachmentException extends java.lang.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, org.apache.maven.artifact.Artifact artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.artifact.Artifact
getArtifact()
MavenProject
getProject()
-
-
-
Constructor Detail
-
DuplicateArtifactAttachmentException
public DuplicateArtifactAttachmentException(MavenProject project, org.apache.maven.artifact.Artifact artifact)
-
-
Method Detail
-
getProject
public MavenProject getProject()
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
-
-