spring-cloud-stream-schema - 1.2.0.RC1 中缺少 AvroSchemaMessageConverter class
Missing AvroSchemaMessageConverter class in spring-cloud-stream-schema - 1.2.0.RC1
我在 spring-cloud-stream-schema - 1.2.0.RC1 中缺少 AvroSchemaMessageConverter class。我要通过这个link。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
<version>1.2.0.RC1</version>
</dependency>
当我查看 pom.xml, I was anticipating the class AvroSchemaMessageConverter.java 时将在 spring-cloud-stream-1.2.0.RC1.jar 中可用。但是如下图所示不存在:
有人可以指出我缺少的依赖关系。 我对 spring-cloud-stream 的 Maven 依赖关系到 post 到 Kafka 主题。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Apache avro serialization support -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
</dependency>
</dependencies>
您发布的 link 明确提到您需要包含 org.springframework.cloud:spring-cloud-stream-schema
,AvroSchemaMessageConverter
所在的位置。您还需要明确添加 Avro 版本。
它在架构 jar 中:
<!-- Apache avro serialization support -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
</dependency>
注意那个GitHub工件的完整层次结构...
spring-cloud-stream/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/avro/AvroSchemaMessageConverter.java
我在 spring-cloud-stream-schema - 1.2.0.RC1 中缺少 AvroSchemaMessageConverter class。我要通过这个link
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
<version>1.2.0.RC1</version>
</dependency>
当我查看 pom.xml, I was anticipating the class AvroSchemaMessageConverter.java 时将在 spring-cloud-stream-1.2.0.RC1.jar 中可用。但是如下图所示不存在:
有人可以指出我缺少的依赖关系。 我对 spring-cloud-stream 的 Maven 依赖关系到 post 到 Kafka 主题。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Apache avro serialization support -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
</dependency>
</dependencies>
您发布的 link 明确提到您需要包含 org.springframework.cloud:spring-cloud-stream-schema
,AvroSchemaMessageConverter
所在的位置。您还需要明确添加 Avro 版本。
它在架构 jar 中:
<!-- Apache avro serialization support -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-schema</artifactId>
</dependency>
注意那个GitHub工件的完整层次结构...
spring-cloud-stream/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/avro/AvroSchemaMessageConverter.java