I am facing annotation/persistence errors in a project and the persistence library throws a
NullPointerException when trying to resolve the entitie
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.