我可以从 Eclipse 中运行 jetty-maven-plugin 吗?
我们正在调试 java webapps,并希望使用 jetty-maven-plugin 来启动 Jetty 服务器。我看到的所有文档都建议您应该从命令行执行此操作,这使得在 Eclipse 中调试和设置断点变得困难。另外,我希望在控制台窗口中看到输出,并能够使用红色按钮停止该过程。并进行分析。
有人知道该怎么做吗?
We're debugging java webapps, and would like to use the jetty-maven-plugin to launch a Jetty server. All of the documentation I have seen suggests that you should do it from the command line, which makes debugging and setting breakpoints in Eclipse difficult. Plus I'd like to see the output in the console window and be able to stop the process with red button. And do profiling as well.
Anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,如果您安装了 m2eclipse,那么只需输入“jetty:run”作为您要运行的目标。
不过,您可以通过启动 带有 JPDA 标志的 jetty 插件,无需从 Eclipse 内执行。
Yes, if you have m2eclipse installed then just enter in "jetty:run" as the goal you want to run.
You can however connect Eclipse's (or any IDE's) debugger to a running Jetty instance by launching the jetty plugin with the JPDA flags, without having to execute from within Eclipse.