maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Niedermeier (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MSITE-240) APT: Leaving out optionally figure caption causes exception
Date Thu, 05 Jul 2007 11:49:13 GMT
APT: Leaving out optionally figure caption causes exception
-----------------------------------------------------------

                 Key: MSITE-240
                 URL: http://jira.codehaus.org/browse/MSITE-240
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-5
         Environment: Java 1.5.0_11, Maven 2.0.7
            Reporter: Stephan Niedermeier
         Attachments: test.apt

The description about APT on the website http://maven.apache.org/guides/mini/guide-apt-format.html
is saying: "The figure name is optionally followed by some text: the figure caption." But
leaving out the figure caption causes an AptParseException when calling "mvn site":

[ERROR] Error parsing D:\Workspace\test\src\site\apt\test.apt: line [3] no definition
org.apache.maven.doxia.module.apt.AptParseException: no definition
        at org.apache.maven.doxia.module.apt.AptParser.parse(AptParser.java:131)
        at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:264)
        at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:43)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:48
0)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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:585)
        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.doxia.module.apt.AptParseException: no definition
        at org.apache.maven.doxia.module.apt.AptParser$DefinitionListItem.traverse(AptParser.java:2068)
        at org.apache.maven.doxia.module.apt.AptParser.traverseDefinitionList(AptParser.java:545)
        at org.apache.maven.doxia.module.apt.AptParser.traverseSectionBlocks(AptParser.java:274)
        at org.apache.maven.doxia.module.apt.AptParser.traverseSection(AptParser.java:214)
        at org.apache.maven.doxia.module.apt.AptParser.traverseSection(AptParser.java:223)
        at org.apache.maven.doxia.module.apt.AptParser.traverseBody(AptParser.java:173)
        at org.apache.maven.doxia.module.apt.AptParser.parse(AptParser.java:123)
        ... 25 more

After adding the figure caption, the exception was gone.

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

        

Mime
View raw message