如何在没有任何浏览器插件的情况下从gwt-maven-plugin运行GWT应用程序? [英] How can I run a GWT app from gwt-maven-plugin without any browser plugins?

查看:123
本文介绍了如何在没有任何浏览器插件的情况下从gwt-maven-plugin运行GWT应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我使用 GWT Maven插件(gwt-maven-plugin)构建的GWT应用程序,我可以使用

mvn compile war:exploded gwt:run


运行GWT开发环境,然后启动浏览器。这要求浏览器提供GWT开发插件。 (例如Firefox 6还不支持GWT插件)。



GWT Maven Plugin是否也允许使用GWT应用程序简单运行包含的Jetty容器,而不需要开发模式?

解决方案

配置gwt-maven插件后,您可以简单地运行以下代码。



mvn码头:run-war



gwt编译后,码头,并通过Maven Jetty插件启动。


For a GWT application which I build with the GWT Maven Plugin (gwt-maven-plugin), I can run the GWT Development environment with

mvn compile war:exploded gwt:run

and then launch a browser. This requires that the browser provides the GWT Developer Plugin. (Firefox 6 for example does not yet support the GWT Plugin).

Does the GWT Maven Plugin also allow to simply run the included Jetty container with the GWT application, without a development mode?

解决方案

After configuring gwt-maven plugin you could simply run the following.

mvn jetty:run-war

After gwt compilation the resulting war will be placed in jetty and started via Maven Jetty Plugin.

这篇关于如何在没有任何浏览器插件的情况下从gwt-maven-plugin运行GWT应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆