Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The uimaFIT maven plugin "generate" goal fails if there are by-name imports from other Maven modules:
[WARNING] Cannot generate descriptor for [XXX] org.apache.uima.resource.ResourceInitializationException: An import could not be resolved. No file with name "some/typesystem.xml" was found in the class path or data path. (Descriptor: some JAR reference) at org.apache.uima.util.CasCreationUtils.mergeTypeSystems(CasCreationUtils.java:1084) at org.apache.uima.util.CasCreationUtils.mergeTypeSystems(CasCreationUtils.java:1029) at org.apache.uima.fit.factory.TypeSystemDescriptionFactory.createTypeSystemDescription(TypeSystemDescriptionFactory.java:133) at org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription(AnalysisEngineFactory.java:1018) at org.apache.uima.fit.maven.GenerateDescriptorsMojo.execute(GenerateDescriptorsMojo.java:133) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
This happens despite the uimaFIT maven plugin setting the thread context classloader to a classloader which has access to all the dependencies of the Maven module being processed. Unfortunately, the context classloader is not picked up properly due to UIMA-6239.
Attachments
Issue Links
- relates to
-
UIMA-6239 RelativePathResolver_impl does never fall back to context classloader
- Open
- links to