Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3
-
None
-
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_41, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /usr/share/maven Java version: 1.6.0_41, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"
-
Patch
Description
- Download the attached tgz file
- Open a console
- Enter "tar xzf DOXIA-SWF-BUG.tgz"
- "cd DOXIA-SWF-BUG"
- run "mvn -X site"
Expected:
- System should generate a cool maven site with a cool embedded movie
Actual:
- Doxia crashes with the following Exception
Caused by: java.lang.ClassCastException: org.apache.maven.doxia.module.apt.AptParser cannot be cast to java.lang.String at org.apache.maven.doxia.macro.SwfMacro.execute(SwfMacro.java:57) at org.apache.maven.doxia.parser.AbstractParser.executeMacro(AbstractParser.java:120) at org.apache.maven.doxia.module.apt.AptParser$MacroBlock.traverse(AptParser.java:2919) at org.apache.maven.doxia.module.apt.AptParser.traverseSectionBlocks(AptParser.java:861) at org.apache.maven.doxia.module.apt.AptParser.traverseSection(AptParser.java:807) at org.apache.maven.doxia.module.apt.AptParser.traverseBody(AptParser.java:758) at org.apache.maven.doxia.module.apt.AptParser.parse(AptParser.java:228) at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:63) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:401) at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:53) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:319) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:135) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:175) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:138) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more
Some of the plugins that I am using are putting a parser variable into one of the maps. This parser variable should be ignored by the SwfMacro but isn't.