Skip to content

com.datastax.oss.driver.internal.core.util.Dependency was unintentionally initialized at build time #1340

@acemoo

Description

@acemoo

When trying to natively compile a project that has both spring-boot-starter-data-cassandra and spring-cloud-starter-stream-kafka using mvn clean -Pnative native:compile
I'm getting the following error:

Error: Classes that should be initialized at run time got initialized during image building:
 com.datastax.oss.driver.internal.core.util.Dependency was unintentionally initialized at build time.

Here's a minimal project that shows the problem: https://github.com/acemoo/spring-native-cloud-kafka-data-cassandra

I found a similar issue with Micronaut micronaut-projects/micronaut-cassandra#263
With a solution https://github.com/micronaut-projects/micronaut-cassandra/pull/264/files
Unfortunately, I couldn't find any --initialize-at-build-time in either Spring Boot or Spring Data Cassandra.

Metadata

Metadata

Assignees

Labels

for: external-projectFor an external project and not something we can fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions