开发者

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

开发者 https://www.devze.com 2023-02-21 18:10 出处:网络
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 comm

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

精彩评论

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