GWT运行时依赖关系 [英] GWT Runtime Dependencies

查看:189
本文介绍了GWT运行时依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意,不用使用Google-Eclipse插件;我想手动管理所有依赖项。

Please note, not interested in using the Google-Eclipse plugin; I want to manage all dependencies manually.

刚刚下载了 GWT 2.5.1 SDK ,并且正在查看它附带的所有JAR:

Just downloaded the GWT 2.5.1 SDK and am looking at all the JARs it ships with:

gwt-api-checker.jar     requestfactory-apt-src.jar
gwt-codeserver.jar      requestfactory-client.jar
gwt-dev.jar             requestfactory-client-src.jar
gwt-elemental.jar       requestfactory-client+src.jar
gwt-servlet-deps.jar    requestfactory-server.jar
gwt-servlet.jar         requestfactory-server-src.jar
gwt-soyc-vis.jar        requestfactory-server+src.jar
gwt-user.jar            validation-api-1.0.0.GA.jar
requestfactory-apt.jar  validation-api-1.0.0.GA-sources.jar

显然,其中一些JAR是针对SDK的( gwt-dev.jar gwt-codeserver.jar 等),但有些则需要包含在我的WAR的 WEB-INF / lib direc tory,以便它们可用于运行时类路径。

Obviously, some of these JARs are for the SDK (gwt-dev.jar, gwt-codeserver.jar, etc.) but some will be necessary to be included in my WAR's WEB-INF/lib directory so that they are available to the runtime classpath.

所以我问,以上哪些JAR是运行时依赖关系?发布中没有什么注意,GWT的网站或SDK文档...提前感谢!

So I ask, which of the above JARs are runtime dependencies? Nothing in the release notes, GWT's website, or the SDK documentation...thanks in advance!

推荐答案

您不需要任何这些库在您的 WEB-INF / lib 中。您只需部署GWT编译的类。

You don't need any of these libraries in your WEB-INF/lib. You need only deploy the GWT compiled classes.

您部署的Web应用程序中需要GWT库的唯一原因是,如果您在服务器端代码中使用GWT功能例如GWT RPC)。

The only reason you would require GWT libraries in your deployed web app is if you used GWT functionality in your server-side code (e.g. GWT RPC).

更新以反映评论:

请参阅 https://developers.google.com/web-toolkit/doc / latest / DevGuideRequestFactory#allTogether

这篇关于GWT运行时依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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