Can I run the plug-maven plugin from Eclipse?

We are debugging java webapps and want to use the jetty-maven plugin to start the Jetty server. All the documentation I saw suggests that you should do this from the command line, which makes debugging and setting breakpoints difficult in Eclipse. In addition, I would like to see the result in the console window and be able to stop the process using the red button. And do the profiling as well.

Does anyone know how to do this?

+4
source share
1 answer

Yes, if you have m2eclipse installed, just enter "jetty: run" as the target you want to run.

However, you can connect the Eclipse debugger (or any IDE) to the running Jetty instance by running

+8
source

Source: https://habr.com/ru/post/1346298/


All Articles