继续和jetty/maven2浴血奋战
jetty6的最新版本似乎有很多问题。至少在我拿到的jetty-6.0-SNAPSHOT.jar中,任何post的表单都会把现成卡住。这是个很大的问题。jetty的支持对我说这个问题已经被处理,但我没有拿到任何新的版本的包。
不管怎么样,jetty这个古老的项目肯定是有稳定的可用版本的。查了一下5.1.10可能是最稳定的版本,所以我决定在已有的plugin里自己写一个启动jetty的Mojo来测试。 这个mojo不必像jetty自己的那个那么灵活可以设置端口,contextPath等,因为我的web应用里总是会有一个测试用的jetty.xml文件的。所以只要plugin允许用户告诉它这个文件在哪儿就行了。
这个程序非常简单,最终只是简单的调用了org.mortbay.jetty.Server.main, 带一个参数是jetty.xml的路径。它的源码可以在这里找到。
不管怎么样,jetty这个古老的项目肯定是有稳定的可用版本的。查了一下5.1.10可能是最稳定的版本,所以我决定在已有的plugin里自己写一个启动jetty的Mojo来测试。 这个mojo不必像jetty自己的那个那么灵活可以设置端口,contextPath等,因为我的web应用里总是会有一个测试用的jetty.xml文件的。所以只要plugin允许用户告诉它这个文件在哪儿就行了。
这个程序非常简单,最终只是简单的调用了org.mortbay.jetty.Server.main, 带一个参数是jetty.xml的路径。它的源码可以在这里找到。

73 Comments:
6C4Jue Nice Article.
This post has been removed by a blog administrator.
Hello all!
Wonderful blog.
Magnific!
Hello all!
Please write anything else!
iE4zNB write more, thanks.
Thanks to author.
Good job!
Nice Article.
Hello all!
Thanks to author.
Magnific!
Please write anything else!
Hello all!
Good job!
Thanks to author.
Hello all!
Wonderful blog.
Hello all!
Suicidal twin kills sister by mistake!
Lottery: A tax on people who are bad at math.
What is a free gift ? Aren't all gifts free?
Magnific!
When there's a will, I want to be in it.
Give me ambiguity or give me something else.
Ever notice how fast Windows runs? Neither did I.
Please write anything else!
Build a watch in 179 easy steps - by C. Forsberg.
A lot of people mistake a short memory for a clear conscience.
A lot of people mistake a short memory for a clear conscience.
Nice Article.
640K ought to be enough for anybody. - Bill Gates 81
Wonderful blog.
Lottery: A tax on people who are bad at math.
Friends help you move. Real friends help you move bodies
Please write anything else!
Nice Article.
When there's a will, I want to be in it.
Suicidal twin kills sister by mistake!
I'm not a complete idiot, some parts are missing!
A lot of people mistake a short memory for a clear conscience.
Give me ambiguity or give me something else.
All generalizations are false, including this one.
C++ should have been called B
Oops. My brain just hit a bad sector.
C++ should have been called B
Build a watch in 179 easy steps - by C. Forsberg.
Beam me aboard, Scotty..... Sure. Will a 2x10 do?
Friends help you move. Real friends help you move bodies.
The gene pool could use a little chlorine.
Nice Article.
Hello all!
Oops. My brain just hit a bad sector.
The gene pool could use a little chlorine.
Ever notice how fast Windows runs? Neither did I.
I'm not a complete idiot, some parts are missing!
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Nice Article.
Energizer Bunny Arrested! Charged with battery.
Magnific!
Magnific!
All generalizations are false, including this one.
Please write anything else!
What is a free gift ? Aren't all gifts free?
Calvin, we will not have an anatomically correct snowman!
Ever notice how fast Windows runs? Neither did I.
Give me ambiguity or give me something else.
Beam me aboard, Scotty..... Sure. Will a 2x10 do?
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Good job!
Suicidal twin kills sister by mistake!
Post a Comment
Links to this post:
Create a Link
<< Home