You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2015/01/20 14:25:34 UTC

[jira] [Commented] (TIKA-1524) Can install Tika-Bundle, missing JUnit dependency

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

Nick Burch commented on TIKA-1524:
----------------------------------

JUnit should only be needed for testing the bundle, not for running it

I can't see any references to junit from the main code, only in the test classes

The bundle explicitly doesn't import junit (there's a {{<Import-Package> !org.junit,}} line)

Finally, we have a unit test that tries to start the bundle + check all the parsers are there, and that seems to work fine

So, I've no idea why it's failing for you... Can you maybe turn on some more logging or debugging, and see why your environment wants to use junit?

> Can install Tika-Bundle, missing JUnit dependency
> -------------------------------------------------
>
>                 Key: TIKA-1524
>                 URL: https://issues.apache.org/jira/browse/TIKA-1524
>             Project: Tika
>          Issue Type: Bug
>          Components: packaging
>    Affects Versions: 1.7
>         Environment: Karaf 2.3.6
>            Reporter: Niels
>
> When I'm trying to install a feature which has a dependency on the Tika-Bundle, it fails to install. It indicates it's missing a dependency to JUnit. 
> Momentarily I solved this for myself by reverting back to Tika-Bundle version 1.6
> Error executing command: Could not start bundle mvn:org.apache.tika/tika-bundle/1.7 in feature(s): Unresolved constraint in bundle org.apache.tika.bundle [336]: Unable to resolve 336.0: missing requirement [336.0] osgi.wiring.package; (osgi.wiring.package=org.junit.internal)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)