uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (Jira)" <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-6226) uimaFIT maven plugin "generate" fails to import type systems from dependencies
Date Thu, 23 Apr 2020 20:40:00 GMT

     [ https://issues.apache.org/jira/browse/UIMA-6226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Richard Eckart de Castilho updated UIMA-6226:
    Fix Version/s:     (was: 2.5.0uimaFIT)

> uimaFIT maven plugin "generate" fails to import type systems from dependencies
> ------------------------------------------------------------------------------
>                 Key: UIMA-6226
>                 URL: https://issues.apache.org/jira/browse/UIMA-6226
>             Project: UIMA
>          Issue Type: Bug
>          Components: uimaFIT-Maven-Plugin
>    Affects Versions: 2.4.0uimaFIT
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 2.6.0uimaFIT, 3.1.0uimaFIT
> The uimaFIT Maven plugin goal "generate" is unable to resolve type system imports in
analysis engine descriptors if the imported type system is located in a project dependency
and not part of the current module.
> {code}
> Caused by: org.apache.uima.util.InvalidXMLException: An import could not be resolved.
 No file with name "my/imported/typesystem.xml" was found in the class path or data path.
(Descriptor: jar:file:/home/user/.m2/repository/some/dependency-1.0.0.jar!/my/typesystem-with-import.xml)
>     at org.apache.uima.resource.metadata.impl.Import_impl.findAbsoluteUrl (Import_impl.java:149)
>     at org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl.resolveImports
>     at org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl.resolveImports
>     at org.apache.uima.util.CasCreationUtils.mergeTypeSystems (CasCreationUtils.java:1082)
>     at org.apache.uima.util.CasCreationUtils.mergeTypeSystems (CasCreationUtils.java:1029)
>     at org.apache.uima.fit.factory.TypeSystemDescriptionFactory.createTypeSystemDescription
>     at org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription (AnalysisEngineFactory.java:978)
>     at org.apache.uima.fit.maven.GenerateDescriptorsMojo.execute (GenerateDescriptorsMojo.java:127)
> {code}
> A workaround to this bug is to include all dependencies containing imported type systems
as dependencies of the uimafit-maven-plugin in the POM.
> But this should not be necessary. The plugin should be able to resolve the imports even
if the dependency is only declared as a regular project dependency, not a plugin dependency.

This message was sent by Atlassian Jira

View raw message