java 如何确定要使用哪个版本的 Jetty?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14947322/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to figure out what version of Jetty to use?
提问by CorayThan
In my build for my maven java webapp, I have the following plugin:
在我的 maven java webapp 构建中,我有以下插件:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.8.v20121106</version>
</plugin>
But the version of Jetty I'm using has that annoying "null identity service" thing, so I want to upgrade the version I'm using, but I can't figure out any good way to determine what version of jetty would be best for me to run.
但是我使用的 Jetty 版本有令人讨厌的“空身份服务”的东西,所以我想升级我使用的版本,但我想不出任何好方法来确定哪个版本的 jetty 是最好的让我跑。
I've found this Jetty documentationwhich shows some info, but only about the big version numbers, like 6, 7, 8, and 9. I'm using javax.servlet 3.0.1, so I think I want jetty 8 or 9.
我找到了这个 Jetty 文档,它显示了一些信息,但只涉及大版本号,如 6、7、8 和 9。我使用的是 javax.servlet 3.0.1,所以我想我想要码头 8 或 9 .
This Jetty documentationseems to be telling me how to figure out individual versions to use, but I don't entirely get it. It looks like from that maybe I should use 9.0.0.RC0?
这个 Jetty 文档似乎告诉我如何找出要使用的各个版本,但我并不完全明白。从那看来,也许我应该使用 9.0.0.RC0?
On the maven repo page for jettyI can see a bunch of versions, but the most recent version 8 is the one I'm using with the bugged identity service thing, and the 9s are all "milestones" which I assume means they're relatively untrustworthy? I don't really know what it means by "milestone".
在jetty的maven repo 页面上,我可以看到一堆版本,但最新的版本8 是我使用的带有bug 身份服务的版本,而9 都是“里程碑”,我认为这意味着它们是比较不靠谱?我真的不知道“里程碑”是什么意思。
I'd appreciate some guidance or advice!
我很感激一些指导或建议!
回答by Sanket
Locate the start.jar in your distribution. Then use the "--version" flag: java -jar start.jar -- version
在您的发行版中找到 start.jar。然后使用“--version”标志: java -jar start.jar -- version
回答by Emmanuel Bourg
If you don't need WebSockets or SPDY you can stick to the latest release of Jetty 8. Look at this page and pick the highest 8.1.x version:
如果您不需要 WebSockets 或 SPDY,您可以坚持使用最新版本的 Jetty 8。查看此页面并选择最高的 8.1.x 版本:
回答by wener
How about this Jetty_Version_Comparison_Tableand this Feature list. If you need xxx feature, then look into it, it will show you which version you need to support this feature.
这个Jetty_Version_Comparison_Table和这个Feature list怎么样。如果您需要xxx功能,然后查看它,它会显示您需要哪个版本来支持此功能。