我在项目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 compile
和sudo 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) 我按照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.html
URL栏,我会收到一个超时错误(即使页面只包含一个简单的alert
调用).
谁能告诉我这里发生了什么?