当我尝试运行 jetty maven 插件(mvn jetty:run) 时,我收到此错误:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\projects\Projekt\src\main\java\Runner.java:[18,22] package org.apache.uima does not exist
这个包使用了Runner类,好像没有找到,如何添加呢?
我尝试过使用
最佳答案
更新 2:Uima 现在可在公开可用的 Maven 存储库中使用,无需配置存储库列表。
更新:Uima 可在 Apache 的 m2 上使用 http://people.apache.org/repo/m2-incubating-repository 。您需要将设置配置为 reference the repository并将依赖项添加到您的 pom 中。
uima-core 的依赖关系如下所示:
<dependency>
<groupId>org.apache.uima</groupId>
<!--note there are several other uima jars you may want to reference-->
<artifactId>uimaj-core</artifactId>
<version>2.4.0</version>
</dependency>
关于java - maven jetty 插件中找不到包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1443592/