Package org.apache.maven
Class DuplicateProjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.MavenExecutionException
-
- org.apache.maven.DuplicateProjectException
-
- All Implemented Interfaces:
Serializable
public class DuplicateProjectException extends MavenExecutionException
Signals a collision of two or more projects with the same g:a:v during a reactor build.- Author:
- Benjamin Bentmann
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<File>>
getCollisions()
Gets the POM files of the projects that collided.-
Methods inherited from class org.apache.maven.MavenExecutionException
getPomFile
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DuplicateProjectException
public DuplicateProjectException(String message, Map<String,List<File>> collisions)
Creates a new exception with specified details.- Parameters:
message
- The message text, may benull
.collisions
- The POM files of the projects that collided, indexed by their g:a:v, may benull
.
-
-