GWT:开发模式下的 Jetty 版本 [英] GWT: Jetty version in dev mode

查看:29
本文介绍了GWT:开发模式下的 Jetty 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个问题:
1. GWT 2.5.1 在开发模式下使用哪个 Jetty 版本?
2.有没有办法改变这个版本?

I have two questions:
1. Which Jetty version is used by GWT 2.5.1 in dev-mode?
2. Is there a way to change this version?

推荐答案

  1. 6.1.11(来源:https://gwt.googlesource.com/gwt/+/2.5.1/dev/build.xml)
    请注意,2.6 和 2.7 使用 Jetty 8.1.12.v20130726 和 2.8 使用 Jetty 9.20151v14.一个>
  2. 是的,您可以实施 ServletContainerLauncher 启动另一个版本的 Jetty.不过要小心类路径冲突!(但我想你会想要使用最近的版本,新版本使用 org.eclipse.jetty 而不是 org.mortbay.jetty 作为根包,所以有应该没有任何问题(使用 2.6 之前的旧 GWT).
  1. 6.1.11 (source: https://gwt.googlesource.com/gwt/+/2.5.1/dev/build.xml)
    Note that 2.6 and 2.7 use Jetty 8.1.12.v20130726, and 2.8 uses Jetty 9.2.14.v20151106
  2. Yes, you can implement a ServletContainerLauncher that starts another version of Jetty. Beware of classpath conflicts though! (but I suppose you'll want to use a recent version and the new versions use org.eclipse.jetty rather than org.mortbay.jetty as a root package so there shouldn't be any problem (with the old GWT pre-2.6).

仅供参考,gwt-dev 将在下一个 GWT 版本(或者可能是之后的版本)中拆分为多个 JAR,并且对 Jetty 的依赖将移至可选 JAR,并且也可能会更新.(尽管 GWTTestCase 也依赖于 Jetty)
这最终在 GWT 2.8 中发生,但是 SDM (CodeServer) 需要 Jetty,并且 Jetty 的向后兼容性不好.

FYI, gwt-dev will be split into several JARs in the next version of GWT (or maybe the one after that) and the dependency on Jetty will be moved to an optional JAR, and will possibly be updated as well. (note though that GWTTestCase also depends on Jetty)
this finally happens with GWT 2.8, but Jetty is needed for SDM (CodeServer) and Jetty has a bad track of backwards compatibility.

这篇关于GWT:开发模式下的 Jetty 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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