This should be filed for surefire

http://jira.codehaus.org/browse/SUREFIRE

component 'Maven Surefire Report Plugin'. 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





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to