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

[jira] Updated: (SUREFIRE-659) Maven PDF plugin:showSuccess=false creates empty table causing error

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

Kristian Rosenvold updated SUREFIRE-659:
----------------------------------------

    Attachment: surefire659testcase.patch

Enclosed is an IT project that can be used to work on this issue.

> Maven PDF plugin:showSuccess=false creates empty table causing error
> --------------------------------------------------------------------
>
>                 Key: SUREFIRE-659
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-659
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.6
>         Environment: maven 2.2.1, surefire 2.6, maven-pdf-plugin
>            Reporter: Darren Hartford
>         Attachments: surefire659testcase.patch
>
>
> The problem is that for 
> showSuccess=false an empty table is written but fo expects some 
> tableRows even if they are empty.
> Cheers,
> -Lukas
> Darren Hartford wrote:
> > Hey all,
> > Not sure where to put this issue, but using the surefire-report(2.6) with showSuccess=false, with the maven-pdf-plugin (1.1) breaks. This is using a multi-module/aggregate report approach, maven 2.2.1.  With showSuccess=true, everything works fine.
> >
> > Basic intent is to, on a release, create an aggregate/summary PDF of the release, but some of the items. such as the surefire-report, are too verbose.
> >
> >         <plugin>
> >          <groupId>org.apache.maven.plugins</groupId>
> >          <artifactId>maven-surefire-report-plugin</artifactId>
> >          <version>2.6</version>
> > <configuration>
> > <!-- although would prefer this, causing fo:table-body generation issues
> > -->
> >            <showSuccess>false</showSuccess>
> > <aggregate>true</aggregate>
> > </configuration>
> >        </plugin>
> >
> >
> >
> >
> >
> > Error
> > ===========================
> > [ERROR] BUILD ERROR
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Error during document generation: Error creating PDF from /dev//target/pdf/maven-pdf-plugin-doc-3.6.fo: org.apache.fop.fo.ValidationException: file:/dev//target/pdf/maven-pdf-plugin-doc-3.6.fo:3089:16: Error(3089/16): fo:table-body is missing child elements.
> > Required Content Model: marker* (table-row+|table-cell+)
> >
> > [INFO] ------------------------------------------------------------------------
> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Error during document generation: Error creating PDF from /dev//target/pdf/maven-pdf-plugin-doc-3.6.fo: org.apache.fop.fo.ValidationException: file:/dev//target/pdf/maven-pdf-plugin-doc-3.6.fo:3089:16: Error(3089/16): fo:table-body is missing child elements.
> > Required Content Model: marker* (table-row+|table-cell+)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >     at java.lang.reflect.Method.invoke(Method.java:616)
> >     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Error during document generation: Error creating PDF from /dev//target/pdf/maven-pdf-plugin-doc-3.6.fo: org.apache.fop.fo.ValidationException: file:/dev//target/pdf/maven-pdf-plugin-doc-3.6.fo:3089:16: Error(3089/16): fo:table-body is missing child elements.
> > Required Content Model: marker* (table-row+|table-cell+)
> >     at org.apache.maven.plugins.pdf.PdfMojo.generatedPdf(PdfMojo.java:574)
> >     at org.apache.maven.plugins.pdf.PdfMojo.execute(PdfMojo.java:391)
> >     at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
> >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> >     ... 16 more
> > Caused by: org.apache.maven.doxia.docrenderer.DocumentRendererException: Error creating PDF from /dev//target/pdf/maven-pdf-plugin-doc-3.6.fo: org.apache.fop.fo.ValidationException: file:/dev//target/pdf/maven-pdf-plugin-doc-3.6.fo:3089:16: Error(3089/16): fo:table-body is missing child elements.
> > Required Content Model: marker* (table-row+|table-cell+)
> >     at org.apache.maven.doxia.docrenderer.pdf.fo.FoPdfRenderer.generatePdf(FoPdfRenderer.java:349)
> >     at org.apache.maven.doxia.docrenderer.pdf.fo.FoPdfRenderer.render(FoPdfRenderer.java:175)
> >     at org.apache.maven.doxia.docrenderer.AbstractDocumentRenderer.render(AbstractDocumentRenderer.java:160)
> >     at org.apache.maven.plugins.pdf.PdfMojo.generatedPdf(PdfMojo.java:561)
> >     ... 19 more
> >

-- 
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