1

当我尝试运行 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 类,好像没找到,怎么添加呢?我曾尝试使用 <webAppConfig>,但它没有帮助...

4

2 回答 2

2

更新 2:Uima 现在可以在公开的 Maven 存储库中使用,无需配置存储库列表。

更新:Uima在 Apache 的 m2 http://people.apache.org/repo/m2-incubating-repository可用。您需要配置设置以引用存储库并将依赖项添加到您的 pom.xml 中。

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>
于 2009-09-18T10:10:36.910 回答
0
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>9.4.5.v20170502</version>
            <configuration>
                <httpConnector>
                    <port>9999</port>
                </httpConnector>
                <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
            </configuration>
        </plugin>
于 2018-04-02T11:02:17.813 回答