【问题标题】:Package not found in maven jetty plugin在 maven jetty 插件中找不到包
【发布时间】:2010-11-29 10:32:07
【问题描述】:

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

【问题讨论】:

    标签: java maven-2 jetty maven-plugin


    【解决方案1】:
            <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>
    

    【讨论】:

    • 我的码头插件版本。我通过另一个命令行命令运行:mvn jetty:run-war
    【解决方案2】:

    更新 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>
    

    【讨论】:

      猜你喜欢
      • 2015-07-22
      • 1970-01-01
      • 2011-04-24
      • 2012-01-05
      • 1970-01-01
      • 1970-01-01
      • 2013-05-24
      • 1970-01-01
      相关资源
      最近更新 更多