Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7146

Introduce MojoExceptionHandler

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.0.x-candidate
    • None
    • None

    Description

      A long time ago discussed with aheritier, but never created a ticket for it.
      Reason behind this is that Jenkins wants to build the complete project and uses a hack to ignore test failures. by rewriting the surefire configuration.
      It would be better if Jenkins could catch the Exception and decide what to do with it.
      Important, the build must fail, even if all these Exceptions are ignored.

      DefaultExceptionHandler.java
      public void handle(MojoException ex) throws MojoException
      {
        throw ex;
      }
      
      JenkinsExceptionHandler.java
      public void handle(MojoException ex) throws MojoException
      {
        // ignore or throw
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rfscholte Robert Scholte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: