相关疑难解决方法(0)

在当前项目中找不到前缀'jetty'的插件

我在项目pom.xml中添加了jetty mvn插件代码.

<plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>maven-jetty-plugin</artifactId>
  <version>6.1.26</version>
  <configuration>
    <contextPath>/redkites</contextPath>
  </configuration>
  <executions>
    <execution>
      <id>start-jetty</id>
      <phase>deploy</phase>
      <goals>
        <goal>run</goal>
      </goals>
      <configuration>
        <scanIntervalSeconds>10</scanIntervalSeconds>
        <daemon>true</daemon>
      </configuration>
    </execution>
  </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

当我使用命令sudo mvn compilesudo mvn clean install,我没有发现任何错误和成功建立,但是当我键入命令sudo mvn jetty:run,我得到一个错误:

[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with …
Run Code Online (Sandbox Code Playgroud)

jetty maven maven-jetty-plugin

27
推荐指数
2
解决办法
4万
查看次数

如何在生产模式下运行GWT

我按照https://developers.google.com/web-toolkit/usingeclipse上的说明尝试在生产模式下运行GWT项目.所以我的项目foo位于foo我的桌面下的workspace文件夹中.当我foo在Project Explorer中右键单击项目时,单击Google- GWT Compile,我permutations 1, 2..在调试控制台中看到一些消息,之后它说编译完成.

但是,与Google页面所说的相反,文件夹中不会生成其他HTML/ Javascript文件war.此外,如果我进入foo/war/foo.htmlURL栏,我会收到一个超时错误(即使页面只包含一个简单的alert调用).

谁能告诉我这里发生了什么?

java eclipse gwt

2
推荐指数
1
解决办法
3732
查看次数

标签 统计

eclipse ×1

gwt ×1

java ×1

jetty ×1

maven ×1

maven-jetty-plugin ×1