[ https://issues.apache.org/jira/browse/MSITE-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16157981#comment-16157981 ]
Hervé Boutemy commented on MSITE-748: ------------------------------------- DOXIA-559 created for issues on Markdown headers with TOC > EmptyStackException on xdoc toc macro usage > ------------------------------------------- > > Key: MSITE-748 > URL: https://issues.apache.org/jira/browse/MSITE-748 > Project: Maven Site Plugin > Issue Type: Bug > Affects Versions: 3.4 > Environment: Ubuntu 12.04 64bit > Reporter: Roman Ivanov > Priority: Minor > > repository https://github.com/checkstyle/checkstyle > update src/xdocs/config.xml, to add Content section conrtaining toc macro > like this: > {code} > <body> > <section name="Content"> > <macro name="toc"> > <param name="fromDepth" value="1"/> > <param name="toDepth" value="1"/> > </macro> > </section> > <section name="Overview"> > {code} > build a site by command: > {code} > mvn -X clean site -Dlinkcheck.skip=true -Dmaven.javadoc.skip=true -DskipTests > -DskipITs -Dpmd.skip=true -Dfindbugs.skip=true -Dcobertura.skip=true > -Dcheckstyle.ant.skip=true > {code} > Exception: > {code} > [DEBUG] Generating > /home/rivanov/java/git-others/checkstyle/checkstyle/target/site/config.html > [DEBUG] Validating: > /home/rivanov/java/git-others/checkstyle/checkstyle/src/xdocs/config.xml > [DEBUG] Validating the content... > [WARNING] <title> was already defined in <properties>, ignored <title> in > <head>. > [DEBUG] Unrecognized xdoc tag: <link> at [17:70] > [DEBUG] Unrecognized xdoc tag: <link> at [18:76] > [warn] <title> was already defined in <properties>, ignored <title> in <head>. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 27.049s > [INFO] Finished at: Wed Jun 24 21:34:25 PDT 2015 > [INFO] Final Memory: 59M/472M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project > checkstyle: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.4:site failed. > EmptyStackException -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on > project checkstyle: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.4:site failed. > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > 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:320) > 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:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > 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.PluginExecutionException: Execution > default-site of goal org.apache.maven.plugins:maven-site-plugin:3.4:site > failed. > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.util.EmptyStackException > at java.util.Stack.peek(Stack.java:102) > at org.apache.maven.doxia.index.IndexingSink.peek(IndexingSink.java:292) > at org.apache.maven.doxia.index.IndexingSink.text(IndexingSink.java:239) > at > org.apache.maven.doxia.module.xdoc.XdocParser.handleSectionStart(XdocParser.java:505) > at > org.apache.maven.doxia.module.xdoc.XdocParser.handleStartTag(XdocParser.java:199) > at > org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.java:235) > at > org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:145) > at > org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96) > at > org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:120) > at org.apache.maven.doxia.macro.toc.TocMacro.execute(TocMacro.java:117) > at > org.apache.maven.doxia.parser.AbstractParser.executeMacro(AbstractParser.java:120) > at > org.apache.maven.doxia.module.xdoc.XdocParser.handleMacroEnd(XdocParser.java:405) > at > org.apache.maven.doxia.module.xdoc.XdocParser.handleEndTag(XdocParser.java:305) > at > org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.java:239) > at > org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:145) > at > org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96) > at > org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:120) > at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:65) > at > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:398) > at > org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:51) > at > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311) > at > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129) > at > org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteMojo.java:261) > at > org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:172) > at > org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > ... 20 more > {code} > Note: > other pages have Content segments and site generation works fine. -- This message was sent by Atlassian JIRA (v6.4.14#64029)