Datastax java 驱动程序 4.5 tinkerpop 依赖项
Datastax java driver 4.5 tinkerpop dependecies
Datastax java 驱动程序 4.5 有很多依赖项。
tinkerpop 是否需要使用 Datastax java 驱动程序来连接到 cassandra 数据库?
只有在使用 DataStax Graph 时才需要 Tinkerpop 依赖项。如documentation states,可以排除:
The driver has a non-optional dependency on that library, but if your application does not use graph at all, it is possible to exclude it to minimize the number of runtime dependencies (see the Integration>Driver dependencies section for more details).
并且链接文档显示驱动程序声明为:
<dependency>
<groupId>com.datastax.oss</groupId>
<artifactId>java-driver-core</artifactId>
<version>${driver.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>tinkergraph-gremlin</artifactId>
</exclusion>
</exclusions>
</dependency>
Datastax java 驱动程序 4.5 有很多依赖项。 tinkerpop 是否需要使用 Datastax java 驱动程序来连接到 cassandra 数据库?
只有在使用 DataStax Graph 时才需要 Tinkerpop 依赖项。如documentation states,可以排除:
The driver has a non-optional dependency on that library, but if your application does not use graph at all, it is possible to exclude it to minimize the number of runtime dependencies (see the Integration>Driver dependencies section for more details).
并且链接文档显示驱动程序声明为:
<dependency>
<groupId>com.datastax.oss</groupId>
<artifactId>java-driver-core</artifactId>
<version>${driver.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>tinkergraph-gremlin</artifactId>
</exclusion>
</exclusions>
</dependency>