Re: [dkpro-lab-developers] engines.properties and maven shade plugin

14 views
Skip to first unread message

Johannes Daxenberger

unread,
Apr 6, 2016, 5:48:45 AM4/6/16
to dkpro-lab-...@googlegroups.com, dkpro-l...@googlegroups.com
Hi,

> you need to define an appending transformer for "META-INF/lab/engines.properties" in the same way as it is being done for the uimaFIT files.
That makes sense and solves the issue :)

Thanks!
Johannes


Am 06.04.16 11:43 schrieb "dkpro-lab-...@googlegroups.com im Auftrag von Richard Eckart de Castilho" <dkpro-lab-...@googlegroups.com im Auftrag von richard...@gmail.com>:

>Hi,
>
>you need to define an appending transformer for "META-INF/lab/engines.properties" in the same way as it is being done for the uimaFIT files.
>
>Cheers,
>
>-- Richard
>
>> On 06.04.2016, at 11:41, Johannes Daxenberger <daxen...@ukp.informatik.tu-darmstadt.de> wrote:
>>
>> Hi,
>>
>> I'm experiencing strange behavior when using DKPro Lab with the maven shade plugin. The packaged standalone jar fails with "Exception in thread "main" java.lang.IllegalArgumentException: No engine registered for type ..." - as a result of the content of META-INF/lab/engines.properties (it misses the ExecutableTaskEngine). I would assume that this is a bug caused by the face that this file is defined both in dkpro-lab-core and in dkpro-lab-uima-engine-simple (and potentially elsewhere), but written to a single file in the standalone jar - apparently overwritten.
>>
>> Maybe I am also using the shade plugin incorrectly, that's why I am writing here rather than opening an issue.
>>
>> This is for dkpro-lab 0.11.0.
>>
>> Shade-plugin configuration (v. 2.4.3):
>> <!-- Merge the uimaFIT configuration files -->
>> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>>
>> <resource>META-INF/org.apache.uima.fit/fsindexes.txt</resource></transformer>
>>
>> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>>
>> <resource>META-INF/org.apache.uima.fit/types.txt</resource></transformer>
>>
>> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>>
>> <resource>META-INF/org.apache.uima.fit/typepriorities.txt</resource></transformer>
>>
>> </transformers>
>>
>> <filters>
>>
>> <filter>
>>
>> <artifact>*:*</artifact>
>>
>> <excludes>
>>
>> <exclude>META-INF/*.SF</exclude>
>>
>> <exclude>META-INF/*.DSA</exclude>
>>
>> <exclude>META-INF/*.RSA</exclude>
>>
>> </excludes>
>>
>> </filter>
>>
>> </filters>
>>
>>
>>
>> Thanks,
>>
>> Johannes
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "dkpro-lab-developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-lab-develo...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>--
>You received this message because you are subscribed to the Google Groups "dkpro-lab-developers" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-lab-develo...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages