Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-304

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • None
    • None
    • 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.

      Attachments

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

        Activity

          People

            hboutemy Herve Boutemy
            sannies Sebastian Annies
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: