org.apache.maven
Class DuplicateProjectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.MavenExecutionException
              extended by 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

Constructor Summary
DuplicateProjectException(String message, Map<String,List<File>> collisions)
          Creates a new exception with specified details.
 
Method Summary
 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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 be null.
collisions - The POM files of the projects that collided, indexed by their g:a:v, may be null.
Method Detail

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-2010 The Apache Software Foundation. All Rights Reserved.