Affects Version/s: 2.7
Fix Version/s: 2.8
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.
|Field||Original Value||New Value|
|Attachment||MJAVADOC-304_IT_Test.patch [ 52490 ]|
|Attachment||MJAVADOC-304_Patch.patch [ 52491 ]|
|Fix Version/s||2.8 [ 16433 ]|
|Resolution||Fixed [ 1 ]|
|Assignee||Herve Boutemy [ hboutemy ]|
|Status||Open [ 1 ]||Closed [ 6 ]|
|Project Import||Sun Apr 05 11:56:47 UTC 2015 [ 1428235007093 ]|
|Workflow||jira [ 12722537 ]||Default workflow, editable Closed status [ 12762368 ]|
|Flags||Patch [ 10430 ]|
|Patch Submitted||Yes [ 10763 ]|
|Project Import||Mon Apr 06 00:11:46 UTC 2015 [ 1428279106587 ]|
|Workflow||jira [ 12959999 ]||Default workflow, editable Closed status [ 12996919 ]|