I am having issues using the embedded driver with neo4j OGM for testing. I set up my SessionFactory like this:
but when I run my tests I get this error:
java.lang.NoClassDefFoundError: org/neo4j/graphdb/factory/GraphDatabaseFactory
at org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver.getGraphDatabaseFactory(EmbeddedDriver.java:143)
at org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver.configure(EmbeddedDriver.java:116)
at org.neo4j.ogm.session.SessionFactory.newConfiguredDriverInstance(SessionFactory.java:268)
at org.neo4j.ogm.session.SessionFactory.(SessionFactory.java:89)
I am using neo4j OGM version 3.2.32 and neo4j version 4.1.0, the strange thing is if I revert my neo4j version to 3.5 it works fine. Here is my pom just for reference:
I would like to use neo4j version 4.1 and the documentation says that neo4j OGM should support up to 4.1: Reference - OGM Library
If anyone has any ideas on how to fix it it would be greatly appreciated. Thanks.