Question: I have a project made of several Maven projects, where the tests are in separated modules. E.g:

```
com.xyz.abc.feature.model
com.xyz.abc.feature.model.test

```

The tests are JUnit tests, and I have been running them from the command line with `mvn install`. I want to step through the code in a specific test, so I have imported the project into Eclipse as a Maven Project. I tried putting a breakpoint in the unit test, Eclipse does not stop at it when executing the `mvn install` goal.

How can I debug a specific test in this situation?

Answer: 
There are two main approaches here.

First, you could just execute the test from Eclipse and debug it like you would debug any other Java program. This is probably the easiest approach, but may not be accurate enough if there are differences between the Maven execution and the execution in Eclipse (e.g., environment variables, test order, etc.).

The second approach is to run `mvnDebug` instead of `mvn` this is essentialy `mvn` with a remote debug port open. You can launch the build, connect Eclipse to the remote debugging port and debug from there.
Just open the test in eclipse, double-click on the test name to select it (actually just clicking in the test-name to put the cursor in it should be enough, or you can e.g. select it in the outline view), then right-click and choose `Debug As` > `JUnit Test`