开发者

Can I run the jetty-maven-plugin from within Eclipse?

We're debugging java webapps, and would like to use the jetty-maven-plugin to launch a Jetty server. All of the doc开发者_Python百科umentation 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜