0
votes

The latest mongo db driver version is not available in maven rep. Is it usual or expected.

Mongo DB driver Release notes: https://github.com/mongodb/mongo-java-driver/releases Maven repo URL: https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver

1
I think you might want to read through this mongodb.github.io/mongo-java-driver/4.0/upgrading - SiKing
That helps. It has the required info. - mperle

1 Answers

1
votes

You can refer here.

For Legacy Driver:

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongodb-driver-legacy</artifactId>
    <version>4.1.0</version>
</dependency>

For Sync Driver:

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongodb-driver-sync</artifactId>
    <version>4.1.0</version>
</dependency>