GWT Runtime Dependencies

二次信任 提交于 2020-01-05 06:06:02

问题


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

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

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.

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!


回答1:


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

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).


Update to reflect comment:

See https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory#allTogether.



来源:https://stackoverflow.com/questions/16797749/gwt-runtime-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!