I'm already using getSink(), but I wanted to put a sink between the
provided sink and multiple doxia parsers.
I thought it's useful if multiple pages has to be aggregated to one
page and some extra work has to be done, e.g. resolve links to anchors
between different different source documents (in this case I need a
two-pass approach).

On Thu, Jan 5, 2012 at 9:59 PM, Olivier Lamy <[email protected]> wrote:
> Hello,
>
> I wonder why you create a sink ?
> If your mojo extends AbstractMavenReport just use getSink().
>
>
> 2012/1/5 Gerhard Wipplinger <[email protected]>:
>> Hi,
>>
>> I tried to create a maven report using some kind of a filter sink:
>>
>> public class DoxiaTestMojo extends AbstractMavenReport {
>>
>> ...
>>
>>  @Override
>>  protected void executeReport(Locale locale) throws
>> MavenReportException {
>>      org.apache.maven.doxia.sink.Sink s = new SinkAdapter() {
>>              ...
>>      };
>>      ...
>>  }
>> }
>>
>> If I execute this report I get the following error:
>>
>> [WARNING] An issue has occurred with report at.gw.test.DoxiaTestMojo,
>> skip LinkageError loader constraint violation in interface itable
>> initialization: when resolving method
>> "org.apache.maven.doxia.sink.AbstractSink.enableLogging(Lorg/apache/maven/doxia/logging/Log;)V"
>>  the class loader (instance of 
>> org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, 
>> org/apache/maven/doxia/sink/AbstractSink, and the class loader (instance of 
>> org/codehaus/plexus/classworlds/realm/ClassRealm) for interface 
>> org/apache/maven/doxia/logging/LogEnabled have different Class objects for 
>> the type org/apache/maven/doxia/logging/Log used in the signature, please 
>> report an issue to Maven dev team.
>>
>> I think the problem is that the interfaces of the doxia-logging-api are
>> not imported to the class realm of the report ...
>>
>>
>> Does anyone has a workaround for this?
>>
>>
>> Thanks,
>> Gerhard
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to