Issue adding MongoDB Java Driver as a Maven dependency

The title says it all really, my pom is shown below:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""



The following error is given:

“Dependency ‘org.mongodb:mongodb-driver-sync:3.10.2’ not found”

I’m using Java 14.0.2 and the latest version of IntelliJ


So after restarting IntelliJ the above code seems to work fine. I’m unsure of where the issue was, but the dependency is being found now without any changes to the pom.

Leave a Reply

Your email address will not be published. Required fields are marked *