You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Arnaud MERGEY (Jira)" <ji...@apache.org> on 2021/04/15 07:19:00 UTC

[jira] [Comment Edited] (TIKA-3354) [tika-parsers] Wrong commons-io version imported

    [ https://issues.apache.org/jira/browse/TIKA-3354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17321960#comment-17321960 ] 

Arnaud MERGEY edited comment on TIKA-3354 at 4/15/21, 7:18 AM:
---------------------------------------------------------------

digging more about this I think I found the explanation: 

[https://stackoverflow.com/questions/45855091/maven-bundle-plugin-generates-manifest-with-wrong-or-missing-versions]

In my case I have the bundle commons-io from eclipse orbit which exports packages with its own version (which is 2.x ) instead of 1.4 as apache regular jar is doing.

The fix to this is probably to "force" org.apache.commons.io.output with a range in [1.4,3) in maven-bundle-plugin instructions


was (Author: amergey):
digging more about this I think I found the explanation: 

[https://stackoverflow.com/questions/45855091/maven-bundle-plugin-generates-manifest-with-wrong-or-missing-versions]

In my case I have the bundle commons-io from eclipse orbit which exports packages with its own version (which is v2) instead of 1.4 as apache regular jar is doing.

The fix to this is probably to "force" org.apache.commons.io.output with a range in [1.4,3) in maven-bundle-plugin instructions

> [tika-parsers] Wrong commons-io version imported
> ------------------------------------------------
>
>                 Key: TIKA-3354
>                 URL: https://issues.apache.org/jira/browse/TIKA-3354
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.26
>            Reporter: Arnaud MERGEY
>            Priority: Major
>
> tika-parsers is not importing the correct commons-io version in osgi.
> Manifest is importing commons io 1
> {code:java}
>  org.apache.commons.io.output;resolution:=optional;version="[1.4,2)"{code}
> it should import version 2.8 of commons io as declared in maven



--
This message was sent by Atlassian Jira
(v8.3.4#803005)