IntelliJ IDEA debugger skips breakpoints when debugging Maven tests

Just disable the forked mode – something like this in your pom file (under project/build/plugins section):

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.14</version>
<configuration>
    <forkMode>never</forkMode>
</configuration>
</plugin>

Leave a Comment