Migration Guide from 4.x to 4.3
用于 Apache Cassandra 的 Spring Data 4.3 已将 com.datastax.oss
组 ID 迁移至 org.apache.cassandra
。
Migration of the Datastax driver into Apache
在将 Datastax Driver 迁移到 Apache Foundation 中,你需要更新你代码中的 Driver 坐标。考虑以下示例,展示 Maven 项目配置的先前潜在状态:
Example 1.
pom.xml
Example up to 4.2.x<dependency>
<groupId>com.datastax.oss</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.oss</groupId>
<artifactId>java-driver-query-builder</artifactId>
</dependency>
在将组 ID 从 com.datastax.oss
升级至 org.apache.cassandra
后,你的项目配置将如下所示:
Example 2.
pom.xml
Example since to 4.3.x<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-query-builder</artifactId>
</dependency>