Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-304

failOnError is ignored if javadoc:javadoc is called via Site Plugin 3.0-beta

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Labels:
      None
    • Flags:
      Patch

      Description

      failOnError works for the case that javadoc:jar is executed. This invocation calls execute() and then generate(sink, locale). The generate is surrounded with a try/catch-block catching any exception thrown by the javadoc generation. In case of failOnError==false the exception does not interrupt the build. That perfectly ok!

      failOnError does not work if it is called during site generation. During site generation only generate(sink, locale is called which misses the try/catch guard for failures during generation of javadoc.

      Effectively you cannot ignore failures during site generation.

      1. MJAVADOC-304_IT_Test.patch
        6 kB
        Sebastian Annies
      2. MJAVADOC-304_Patch.patch
        0.8 kB
        Sebastian Annies

        Activity

        Sebastian Annies created issue -
        Hide
        Sebastian Annies added a comment -

        Integration Test (IT Test) and Patch.

        Show
        Sebastian Annies added a comment - Integration Test (IT Test) and Patch.
        Sebastian Annies made changes -
        Field Original Value New Value
        Attachment MJAVADOC-304_IT_Test.patch [ 52490 ]
        Attachment MJAVADOC-304_Patch.patch [ 52491 ]
        Hide
        Felix Simmendinger added a comment -

        This bug is very nasty since you have to configure your release plugin to use preparationGoals "clean install" otherwise thirdparty javadoc references will fail the build as those dependencies aren't present in the classpath of javadoc.

        Show
        Felix Simmendinger added a comment - This bug is very nasty since you have to configure your release plugin to use preparationGoals "clean install" otherwise thirdparty javadoc references will fail the build as those dependencies aren't present in the classpath of javadoc.
        Hide
        Hervé Boutemy added a comment -

        fixed in r1098423

        Show
        Hervé Boutemy added a comment - fixed in r1098423
        Hervé Boutemy made changes -
        Fix Version/s 2.8 [ 16433 ]
        Resolution Fixed [ 1 ]
        Assignee Herve Boutemy [ hboutemy ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 11:56:47 UTC 2015 [ 1428235007093 ]
        Mark Thomas made changes -
        Workflow jira [ 12722537 ] Default workflow, editable Closed status [ 12762368 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:11:46 UTC 2015 [ 1428279106587 ]
        Mark Thomas made changes -
        Workflow jira [ 12959999 ] Default workflow, editable Closed status [ 12996919 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        150d 4h 25m 1 Hervé Boutemy 01/May/11 18:20

          People

          • Assignee:
            Hervé Boutemy
            Reporter:
            Sebastian Annies
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development