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

查看:227
本文介绍了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.2.14.v20151106

  2. 是的,您可以实施 ServletContainerLauncher 启动另一个版本的Jetty。但请注意类路径冲突! (但我想你会想用最近的版本,新版本使用 org.eclipse.jetty 而不是 org.mortbay.jetty 作为一个根包,所以不应该有任何问题(与旧的GWT 2.6之前)。
  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需要Jetty( CodeServer ),并且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天全站免登陆