[ http://jira.codehaus.org/browse/DOXIA-92?page=comments#action_84507 ] Martin Goldhahn commented on DOXIA-92: --------------------------------------
I figured out two solutions to the problem: 1. Use the ITextSink.setClassLoader(ClassLoader) function 2. set a new Thread.contextClassLoader in the DoxiaRenderBooksMojo and allow the Thread.contextClassLoader to load the image, a new config parameter is added to the Mojo The first alternative requires more knowledge of the inner working of maven than I have. For the second solution I add two patches: ITextSink.patch from the doxia-module-itext project and DoxiaRendererBooksMojo from the doxia-maven-plugin project > cannot load images in APT files > ------------------------------- > > Key: DOXIA-92 > URL: http://jira.codehaus.org/browse/DOXIA-92 > Project: doxia > Issue Type: Bug > Reporter: Martin Goldhahn > Priority: Critical > > I want to render an APT file that I use in my site as a PDF file. > Maven's site plugin finds the image because it is located in > src/site/resources. It seams that this path is not added to doxia's > classpath. Thus it cannot find the image. > How do I tell the doxia-maven-plugin that it should search the resources > folder as well? -- 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