本文介绍了如何配置Tika的pom.xml以停止获取所有许可证依赖关系警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Tika时,我会收到所有这些警告:

I am getting all these warnings from Tika when I try to use it:

2018年2月24日晚上9:24:35 org.apache.tika.config.InitializableProblemHandler $ 3 handleInitializableProblem警告:org.xerial的sqlite-jdbc不是 已加载.请在您的类路径中提供jar来解析sqlite 文件.有关正确的版本,请参见tika-parsers/pom.xml.

Feb 24, 2018 9:24:35 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem WARNING: org.xerial's sqlite-jdbc is not loaded. Please provide the jar on your classpath to parse sqlite files. See tika-parsers/pom.xml for the correct version.

我尝试添加此内容(在Tika pom.xml中):

I tried adding this (in Tika pom.xml):

            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-jdk15on</artifactId>
                <version>1.57</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcmail-jdk15on</artifactId>
                <version>1.57</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk15on</artifactId>
                <version>1.57</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.17</version>
            </dependency>

            <dependency>
                <groupId>com.levigo.jbig2</groupId>
                <artifactId>levigo-jbig2-imageio</artifactId>
                <version>2.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.github.jai-imageio</groupId>
                <artifactId>jai-imageio-core</artifactId>
                <version>1.3.1</version>
                <scope>test</scope>
            </dependency>    
            <dependency>
                <groupId>com.github.jai-imageio</groupId>
                <artifactId>jai-imageio-jpeg2000</artifactId>
                <version>1.3.0</version>
                <scope>test</scope>
            </dependency>

            <dependency>
                    <groupId>org.xerial</groupId>
                    <artifactId>sqlite-jdbc</artifactId>
                    <version>3.20.1</version>
            </dependency>

但是我仍然收到相同的警告.

But I still get the same warnings.

我该如何解决?

更新1

在这里添加了我的依赖项: https://github. com/apache/tika/blob/1.17/pom.xml#L164-L170

My dependencies were added here: https://github.com/apache/tika/blob/1.17/pom.xml#L164-L170

我也尝试过不进行测试.它什么也没做.

Also I did try without the set to test. It did not do anything.

我添加的依赖项似乎是PDFBox的Tika依赖项.

The dependencies that I added seemed to be for PDFBox a Tika dependency.

推荐答案

我添加了以下依赖项,但没有其他警告

I added the following dependencies and I didn't have any other warning

    <dependency>
        <groupId>org.apache.tika</groupId>
        <artifactId>tika-core</artifactId>
        <version>1.18</version>
    </dependency>
    <dependency>
        <groupId>org.apache.tika</groupId>
        <artifactId>tika-parsers</artifactId>
        <version>1.18</version>
    </dependency>
    <dependency>
        <groupId>org.apache.pdfbox</groupId>
        <artifactId>jbig2-imageio</artifactId>
        <version>3.0.1</version>
    </dependency>
    <dependency>
        <groupId>com.github.jai-imageio</groupId>
        <artifactId>jai-imageio-jpeg2000</artifactId>
        <version>1.3.0</version>
    </dependency>

这篇关于如何配置Tika的pom.xml以停止获取所有许可证依赖关系警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 21:38