When using LocalContainerEntityManagerFactoryBean without any JPA xml configurations the following error is seen Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
My bean is defined as follows
I am not sure if this helps, but I noticed this error when I run integration tests of my modules following way:
mvn clean install -f ../project_dir/pom.xml
key thing is ".." in the path.
funny thing is that when I run exactly same command on a multimodule project and integration tests are in submodules everything works fine.
Also below commands work as expected as well:
mvn clean install
mvn clean install -f project_dir/pom.xml
run it form IDE
I am using Spring Boot 2.0.0.M7, no xmls, just auto configs and annotations
sorry if this is not the right place for this comment.