IntelliJ IDEA debugger skips breakpoints when debugging Maven tests

后端 未结 4 833
予麋鹿
予麋鹿 2021-02-01 18:23

I am trying to debug Maven tests in IntelliJ IDEA. When I open IDEA\'s Maven Projects view and right-click on test goal, I get an option to debug it. C

4条回答
  •  青春惊慌失措
    2021-02-01 18:42

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

    
    org.apache.maven.plugins
    maven-surefire-plugin
    2.14
    
        never
    
    
    

提交回复
热议问题