Hi,

I have an application using Maven1 for documentation currently, and wanted to 
upgrade to Maven3 in the (vain?) hope of getting the PDF plugin to work. The 
problem with the PDF plugin in Maven1 on this application is one of 
StackOverflowException in FOP due to the size of the docs. I've just migrated 
an amount of the docs for use in Maven3. I can get "site" to run (still to 
write a skin that lays it out as I want it), but when I run the PDF plugin I 
get

... (all files in XDOC format), validated and parsed ok.

[DEBUG] Generating: 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.pdf
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 23.177s
[INFO] Finished at: Mon Jul 02 19:58:50 BST 2012
[INFO] Final Memory: 21M/494M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-
plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during 
document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project 
datanucleus-site: Error during document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during 
document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        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.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.doxia.docrenderer.DocumentRendererException: Error 
creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        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)
        ... 22 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:


My pdf.xml is 
<document xmlns="http://maven.apache.org/DOCUMENT/1.0.1";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/DOCUMENT/1.0.1 
http://maven.apache.org/xsd/document-1.0.1.xsd";
  outputName="maven-pdf-plugin">
  <meta>
    <title>Maven PDF Plugin</title>
    <author>The Apache Maven Project</author>
  </meta>

  <cover>
    <coverTitle>${project.name}</coverTitle>
    <coverSubTitle>v. ${project.version}</coverSubTitle>
    <coverType>User Guide</coverType>
    <projectName>${project.name}</projectName>
  </cover>
</document>




Any ideas of what to try? Is this a bug in FOP, or the PDF plugin?

TIA
-- 
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to