哪里可以得到Apache Tika罐子? [英] where to get Apache Tika jar?

查看:91
本文介绍了哪里可以得到Apache Tika罐子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部:

我尝试使用Apache Tika来构建应用程序以解析PDF,但是我想知道从哪里可以得到tika-core/target/tika-core- .jar和tika-parsers/target/tika-parsers之类的库- .jar

I try to build app using Apache Tika to parse PDF, but I wonder where can I get those libraries like tika-core/target/tika-core-.jar and tika-parsers/target/tika-parsers-.jar

我只找到tika-app,但上面没有这样的罐子.

I only find tika-app but there is no such jar like above.

http://tika.apache.org/1.11/gettingstarted.html

推荐答案

Apache Tika具有大量需要运行的依赖项.没有这些出席者,它将几乎无济于事!

Apache Tika has a large number of dependencies it needs to run. Without those present, it will do very little!

因此,您需要使用依赖项管理工具不仅获得Apache Tika,还获得其所需的其他库.如果您使用的是Apache Maven,则可以按照Tika网站上的说明进行操作将其添加为对项目的依赖项,并在pom中添加以下部分:

You therefore need do use a dependency management tool to not only get Apache Tika, but also the other libraries it needs. If you're using Apache Maven to do that, you can follow the instructions on the Tika website to add it as a dependency to your project with a section in your pom like:

<dependency>
   <groupId>org.apache.tika</groupId>
   <artifactId>tika-parsers</artifactId>
   <version>1.11</version>
</dependency>

Apache Tika快速入门页还列出了有关向Tika添加依赖项的说明.具有所有必需的依赖关系,也适用于Gradle和Ivy构建.您确实应该使用Maven,Gradle或Ivy中的一种来为您处理依赖项

The Apache Tika quickstart page also lists instructions on adding a dependency to Tika, along with all required dependencies, for both Gradle and Ivy builds too. You really ought to be using one of Maven, Gradle or Ivy to be handling the dependencies for you

如果您确实想自己处理所有依赖项,则可以在通常的地方在Maven Central中找到Tika Core和Tika Parsers二进制jar.对于Tika 1.11,在此处tika-core jar

If you really do want to handle all the dependencies yourself, you can find the Tika Core and Tika Parsers binary jars on Maven central, in the usual place. For Tika 1.11, that's here for the tika-core jar and here for the tika-parsers jar. But, as previously mentioned, you almost certainly don't want to be doing that by hand!

这篇关于哪里可以得到Apache Tika罐子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆