Maven Doxia

cannot load images in APT files

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    2

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?

  1. DoxiaRenderBooksMojo.patch
    09/Jan/07 9:24 AM
    3 kB
    Martin Goldhahn
  2. ITextSink.patch
    09/Jan/07 9:24 AM
    2 kB
    Martin Goldhahn

Issue Links

Activity

Hide
Martin Goldhahn added a comment -

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

Show
Martin Goldhahn added a comment - 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
Hide
Martin Goldhahn added a comment -

See my previous comment

Show
Martin Goldhahn added a comment - See my previous comment
Hide
Lukas Theussl added a comment -

Superceded by DOXIA-118.

Show
Lukas Theussl added a comment - Superceded by DOXIA-118.

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: