如何禁用使用 Eclipse Jetty Maven 插件运行的 Jetty 的 jsessionid?
我们一直遇到 jsessionid 的问题,我正在尝试找到一种方法来禁用它。有人知道如何使用 org.mortbay.jetty:jetty-maven-plugin:7.xx 来做到这一点吗?到目前为止,我遇到的只是使用 Mortbay 的旧插件来完成此操作,该插件的设置与 Eclipse 的版本不兼容。
提前致谢,
马丁
We've been experiencing problems with jsessionid and I'm trying to figure out a way to disable this. Would anybody happen to know how you can do this using the org.mortbay.jetty:jetty-maven-plugin:7.x.x? So far, all I've come across are ways to do it using the old plugin from Mortbay whose settings are incompatible with Eclipse's version.
Thanks in advance,
Martin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
提交我自己问题的答案,因为似乎没有人对此有答案,我相信其他人最终也会发现它很有用,因为所有其他如何执行此操作的示例都是针对旧的 maven-jetty -插件(<7.x)。
在研究了 Jetty 的代码一段时间后,我发现该变量已被重命名,如下所示:
Submitting answer to my own question due to the fact that nobody seems to have an answer for this and I am sure someone else will eventually find it useful as well, because all the other examples of how to do this were for the old maven-jetty-plugin (<7.x).
After digging through Jetty's code for a while, I found out that the variable had been renamed as shown below: