Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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?
Attachments
Issue Links
| This issue is superceded by: | ||||
| DOXIA-118 | Image directory list field for PDF generation |
|
|
|
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