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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DuplicateProjectException
public DuplicateProjectException(String message,
Map<String,List<File>> collisions)
- Creates a new exception with specified details.
- Parameters:
message
- The message text, may be null
.collisions
- The POM files of the projects that collided, indexed by their g:a:v, may be null
.
getCollisions
public Map<String,List<File>> getCollisions()
- Gets the POM files of the projects that collided.
- Returns:
- The POM files of the projects that collided, indexed by their g:a:v, never
null
.
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.