I am facing annotation/persistence errors in a project and the persistence library throws a
NullPointerException when trying to resolve the entitie
Are you running Maven in debug mode?
To run Maven in debug mode, use the command mvnDebug instead of mvn to build your project and then attach to it using your IDE. Debug breakpoints should be hit.
I've done this with Eclipse, mostly when trying to debug my own annotation processors, but it's also handy for debugging Maven plugins.
I'd imagine debugging a JPA processor would not be trivial - you might be better off looking at the whole error message again or posting it in your question.