Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 247
ccleve Avatar asked Jan 21 '23 02:01

ccleve


1 Answers

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.

like image 52
matt b Avatar answered Jan 30 '23 09:01

matt b