Cannot build Dremio OSS because of missing JDBC driver in Maven repo

I’m trying to build Dremio with the following command:

./mvnw clean install -DskipTests -Ddremio.oss-only=true

But I’m finding this issue:

dremio-dac-backend: Could not resolve dependencies for project com.dremio:dremio-dac-backend:jar:25.0.0-202404051521110861-ed9515a8: The following artifacts could not be resolved: com.dremio.community.plugins:dremio-ce-jdbc-plugin:jar:25.0.0-202404051521110861-ed9515a8 (absent): com.dremio.community.plugins:dremio-ce-jdbc-plugin:jar:25.0.0-202404051521110861-ed9515a8 was not found in https://maven.dremio.com/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of dremio-public has elapsed or updates are forced

It seems that the plugin is not available in the Maven repo, but it is present here: https://download.dremio.com/jdbc-driver/25.0.0-202404051521110861-ed9515a8/dremio-jdbc-driver-25.0.0-202404051521110861-ed9515a8.jar

If it is not present in the Maven repo. Could it be uploaded? :pray:

Thanks!

Hey there–

Are you able to tell me if this is still happening for you when you try to build with

./mvnw clean install -DskipTests -Ddremio.oss-only=true

If it fails, do you still hit the same error above?

Thanks,

Dan

Hi @danh

I was able to reproduce the same issue with dremio-ce-jdbc-plugin:jar:25.1.0, see:

Could not resolve dependencies for project com.dremio:dremio-dac-backend:jar:25.1.0-202409042012430619-15cc6471: The following artifacts could not be resolved: com.dremio.community.plugins:dremio-ce-jdbc-plugin:jar:25.1.0-202409042012430619-15cc6471

I patched the pom.xml to include the “dremio-free” maven repository and it seems it works. However, I’m obtaining the error below at runtime:

java.lang.NoSuchFieldError: RETRY_CONNECTION_ON_FAILURE
    at com.dremio.exec.store.jdbc.JdbcSchemaFetcherFactoryImpl.newFetcher(JdbcSchemaFetcherFactoryImpl.java:53)
    at com.dremio.exec.store.jdbc.conf.JdbcConf.newPlugin(JdbcConf.java:55)
    at com.dremio.exec.store.jdbc.conf.JdbcConf.newPlugin(JdbcConf.java:40)
    at com.dremio.exec.store.jdbc.conf.JdbcConf.newPlugin(JdbcConf.java:20)

Am I missing anything?

Any clue @danh? I’m still facing this issue with dremio-ce-jdbc-plugin.