Issue with Couchbase Lite Dependency - Not Downloading in Docker

Hi,

I have a Java Spring Boot application that uses the couchbase-lite-java-ee library, version 3.1.7, from the Couchbase Maven repository located at https://mobile.maven.couchbase.com/maven2/dev.

Here’s a snippet of my pom.xml:

repositories>
repository>
id>couchbase
url>https://mobile.maven.couchbase.com/maven2/dev/
/repository>
/repositories>

dependency>
groupId>com.couchbase.lite
artifactId>couchbase-lite-java-ee
version>3.1.7
/dependency>’

While the dependency is successfully downloaded in my Eclipse IDE, it fails to download when I run the application in Docker.

Could you please assist me with this issue?

Thank you!

Can you show the failure? It may help someone diagnose the issue.
Thanks.

Sure @mreiche . It doesn’t seem to be showing any specific errors. The main issue is that the dependency isn’t downloading.
The logs indicate:
=> => # Downloading from couchbase: https://mobile.maven.couchbase.com/maven2/dev/com/azure/spring/spring-cloud-azure-dependencies/
=> => # 5.17.1/spring-cloud-azure-dependencies-5.17.1.pom

It remains stuck in the downloading status without any progress. Additionally, when I tried accessing https://mobile.maven.couchbase.com/maven2/ directly in my browser, it returned a “Not Found” error. I’m puzzled as to how this is functioning in Eclipse IDE.

https://mobile.maven.couchbase.com/maven2/
always gives 404 when no file is specify. It does not allow directory listings.

Hi @mreiche , I apologize for the delayed response and appreciate your reply. The issue we encountered was that when we specified only the Couchbase repository, all the dependencies we listed were being pulled from that repository. Since I had included numerous Spring-related dependencies in my pom.xml , it attempted to retrieve them from the Couchbase repository, which didn’t have them (I realized this only after trying the file listing you mentioned). The solution is to include both the Maven Central repository and the Couchbase repository within the <repositories> tag.

1 Like