How do I compile in debug mode? (netbeans, java, maven)

后端 未结 5 1677
再見小時候
再見小時候 2021-02-07 12:01

I am facing annotation/persistence errors in a project and the persistence library throws a

NullPointerException when trying to resolve the entitie

5条回答
  •  灰色年华
    2021-02-07 12:36

    You need to have the jpda.listen=maven property set.

    In Netbeans 8+:

    1. Select the module you want to debug when building.

    2. Right-click to open the context menu, and select Properties.

    3. Select the Actions category.

    4. Then select the Clean and build project Action.

    5. Under the Set Properties section, select Add > Debug Maven Build.

    6. Click the OK button to close and save your settings.

    Now you should be able to set breakpoints and debug maven plugins and dependencies.

提交回复
热议问题