skip to Main Content

I am trying QUARKUS – USING THE MONGODB CLIENT from https://quarkus.io/guides/mongodb

I am on a centos 7 host. Cannot compile apparently failing to download quarkus-mongodb-client dependencies.

The compile is stuck here …

QVDUN1CLGA0055> ./mvnw compile quarkus:dev
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< org.acme:mongodb-quickstart >---------------------
[INFO] Building mongodb-quickstart 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.mongodb:bson:jar:3.12.2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.mongodb:bson:jar:4.0.0-SNAPSHOT is missing, no dependency information available
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mongodb-quickstart ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mongodb-quickstart ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- quarkus-maven-plugin:1.4.2.Final:dev (default-cli) @ mongodb-quickstart ---
Listening for transport dt_socket at address: 5005
Downloading from central: http://central/org/mongodb/bson/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/3.10.3-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/3.11.3-SNAPSHOT/maven-metadata.xml
Downloading from nexus: http://ud-bam2.apps.dev.det.nsw.edu.au:8081/nexus/content/groups/public/org/mongodb/bson/3.12.2-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/3.12.2-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/3.12.2-SNAPSHOT/bson-3.12.2-SNAPSHOT.pom
Downloading from nexus: http://ud-bam2.apps.dev.det.nsw.edu.au:8081/nexus/content/groups/public/org/mongodb/bson/3.12.2-SNAPSHOT/bson-3.12.2-SNAPSHOT.pom
Downloading from central: http://central/org/mongodb/bson/4.0.0-SNAPSHOT/maven-metadata.xml
Downloading from nexus: http://ud-bam2.apps.dev.det.nsw.edu.au:8081/nexus/content/groups/public/org/mongodb/bson/4.0.0-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/4.0.0-SNAPSHOT/bson-4.0.0-SNAPSHOT.pom
Downloading from nexus: http://ud-bam2.apps.dev.det.nsw.edu.au:8081/nexus/content/groups/public/org/mongodb/bson/4.0.0-SNAPSHOT/bson-4.0.0-SNAPSHOT.pom
Downloading from central: http://central/org/mongodb/bson/4.0.1-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/4.0.3-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/4.0.4-SNAPSHOT/maven-metadata.xml
Downloading from central: http://central/org/mongodb/bson/4.1.0-SNAPSHOT/maven-metadata.xml

I have tried adding the dependency on another simple java project, it only downloads if I add the version 1.4.2.Final on that java project.

But adding the version on the quarkus did not help either.

From the warnings it looks like the dependencies might be missing.

Please help.

2

Answers


  1. If you look at Maven Central, both dependencies are there:

    However, you’re not downloading from Maven Central, but from two custom Maven repositories (http://central is the one, the other is http://ud-bam2.apps.dev.det.nsw.edu.au:8081/nexus/). You or your colleagues need to make sure that those repositories either properly mirror Maven Central or that they contain the resources you need.

    If you’re allowed to, you might add https://search.maven.org/ as repository in your ~/.m2/settings.xml file.

    Login or Signup to reply.
  2. FWIW, there was an issue in our BOM, we should have fixed the bson version as some of our dependencies use a version range. This can sometimes cause issues and is suboptimal.

    I created https://github.com/quarkusio/quarkus/pull/9207 to fix this issue once and for all.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search