Class DuplicateProjectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateProjectException
    extends MavenExecutionException
    Signals a collision of two or more projects with the same g:a:v during a reactor build.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.List<java.io.File>> collisions  
    • Constructor Summary

      Constructors 
      Constructor Description
      DuplicateProjectException​(java.lang.String message, java.util.Map<java.lang.String,​java.util.List<java.io.File>> collisions)
      Creates a new exception with specified details.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.io.File>> getCollisions()
      Gets the POM files of the projects that collided.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • collisions

        private java.util.Map<java.lang.String,​java.util.List<java.io.File>> collisions
    • Constructor Detail

      • DuplicateProjectException

        public DuplicateProjectException​(java.lang.String message,
                                         java.util.Map<java.lang.String,​java.util.List<java.io.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 java.util.Map<java.lang.String,​java.util.List<java.io.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.