jetty-distribution-9.3.11 怎么配置到eclipse

如题所述

1.从jetty7开始,划到eclipse项目了,到目前已发布了jetty 7, jetty8。
(jetty 6属于Codehaus的)
http://www.eclipse.org/jetty/

2.下载:jetty-distribution-8.1.4.v20120524.zip
http://mirror.bit.edu.cn/eclipse/jetty/index.html

源码下载:github
https://github.com/eclipse/jetty.project/downloads

3.eclipse WTP中添加jetty server的插件:
http://wiki.eclipse.org/Jetty_WTP_Plugin
http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_Install
http://download.eclipse.org/jetty/updates/jetty-wtp

支持jetty 7和jetty8

4.实际使用中需要把这两个jar包添加到eclipse的launch configuration properties的classpath中去。
以支持annotation的使用。(可以支持servlet3.0的annotation机制。)
jetty-distribution-8.1.4.v20120524\lib\annotations\javax.annotation-1.1.0.v201108011116.jar
jetty-distribution-8.1.4.v20120524\lib\annotations\org.objectweb.asm-3.1.0.v200803061910.jar

注:如果使用WTP的server view中的add server功能,弹出的对话窗中,安装:
Download additional server adapters
只能安装从webtide公司下载jetty6的adapter(webtide是jetty的一个商业支持的公司).
http://www.webtide.com/eclipse
插件:org.mortbay.jetty.serveradaptor_1.0.4
注:这个jetty的adapter是不能运行jetty7或jetty8的。

eclipse JEE 实战(maven+server)
http://floydd.iteye.com/blog/1326337
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答