Closed julienmmm closed 4 years ago
I've found why it was not working. It seems that the plugin does not set the jackson dependcy.
If I modify the plugin definiytion of my pom file as shown bellow, it is working.
<plugin>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-maven-plugin</artifactId>
<version>${confluent.version}</version>
<configuration>
<schemaRegistryUrls>
<param>http://desbv401.belgianrail.be:8081</param>
</schemaRegistryUrls>
<subjects>
<test_ri_tt-key>src/main/avro/trainkey.avsc</test_ri_tt-key>
<test_ri_rt-value>src/main/avro/timetable.avsc</test_ri_rt-value>
</subjects>
</configuration>
<goals>
<goal>register</goal>
</goals>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.4</version>
</dependency>
</dependencies>
</plugin>
But is not preferable to modify the plugin to automatically manage this dependency?
Closing this for now. Please reopen if it's still an issue.
Hello,
When trying to register my avro schema to the schema registry with the maven plugin, as explained here: https://docs.confluent.io/current/schema-registry/docs/maven-plugin.html, I get the following error:
[ERROR] Failed to execute goal io.confluent:kafka-schema-registry-maven-plugin:4.0.0:register (default-cli) on project AvroTest: Execution default-cli of goal io.confluent:kafka-schema-registry-maven-plugin:4.0.0:register failed: A required class was missing while executing io.confluent:kafka-schema-registry-maven-plugin:4.0.0:register: com/fasterxml/jackson/core/type/TypeReference.
Here is the pom file I am using:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">