You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2011/05/02 00:20:22 UTC

[jira] Closed: (MJAVADOC-304) failOnError is ignored if javadoc:javadoc is called via Site Plugin 3.0-beta

     [ http://jira.codehaus.org/browse/MJAVADOC-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MJAVADOC-304.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8
         Assignee: Herve Boutemy

fixed in [r1098423|http://svn.apache.org/viewvc?rev=1098423&view=rev]

> failOnError is ignored if javadoc:javadoc is called via Site Plugin 3.0-beta
> ----------------------------------------------------------------------------
>
>                 Key: MJAVADOC-304
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-304
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7
>            Reporter: Sebastian Annies
>            Assignee: Herve Boutemy
>             Fix For: 2.8
>
>         Attachments: MJAVADOC-304_IT_Test.patch, MJAVADOC-304_Patch.patch
>
>
> {{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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira