[
https://issues.apache.org/jira/browse/UIMA-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13974368#comment-13974368
]
Richard Eckart de Castilho commented on UIMA-3385:
--------------------------------------------------
Regarding the discovery of the meta data, I am happy that this issue can be
closed without even making a change to the code. As mentioned before, uimaFIT
stands in a good tradition in placing its configuration files in well-known
locations without taking explicit care of the problems that can occur when
building fat-jars. I argue that the problem is not on the part of uimaFIT, but
rather on the part of the Maven Assembly Plugin, which fails to handle such
cases. Fortunately, the Maven Shade Plugin *does* handle such cases and can be
used to build (executable) fat-jars including uimaFIT-based components. A
section on how to do this has been added to the uimaFIT guide.
Regarding the misinterpretation of META-INF/org.apache.uima.fit as package
notation, I have added the following note to the documentation:
{quote}
Mind that the file types.txt is must be located in META-INF/
org.apache.uima.fit where org.apache.uima.fit is the name of a sub-directory
inside META-INF. We are not using the Java package notation here!
{quote}
> Make meta data discovery compatible with fat jars
> -------------------------------------------------
>
> Key: UIMA-3385
> URL: https://issues.apache.org/jira/browse/UIMA-3385
> Project: UIMA
> Issue Type: Improvement
> Components: uimaFIT
> Affects Versions: 2.0.0uimaFIT
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Priority: Minor
> Fix For: 2.0.1uimaFIT
>
>
> Most fat jar approaches, e.g. Maven assembly, have problems with resources at
> the same location in the classpath in multiple JARs. E.g. if two JARs being
> bundled into a fat jar have a types.txt file, only one survives.
> One option to fix this would be to change the pattern that uimaFIT uses to
> search for these files, e.g. from
> classpath*:META-INF/org.apache.uima.fit/types.txt to
> classpath*:META-INF/org.apache.uima.fit/**/types.txt
--
This message was sent by Atlassian JIRA
(v6.2#6252)