I tried to pull down the schemas that start with test_sp_
from a schema registry server. I used kafka-schema-registry-maven-plugin
and i configured the ssl truststore.
The problem is when i do clean install, i don’t find the avsc files.
Is there any other config i need to add or a mistake i made in the config below?
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>common-parent</artifactId>
<version>7.1.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-avro-serializer</artifactId>
<version>7.1.1</version>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-json-schema-serializer</artifactId>
<version>7.1.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-maven-plugin</artifactId>
<version>7.1.1</version>
<configuration>
<schemaRegistryUrls>
<param>https://schema-registry:8080</param>
<param>https://schema-registry:8081</param>
</schemaRegistryUrls>
<userInfoConfig>reader:reader</userInfoConfig>
<configs>
<schema.registry.ssl.truststore.location>C:\Users\sp.jks</schema.registry.ssl.truststore.location>
<schema.registry.ssl.truststore.password>spme</schema.registry.ssl.truststore.password>
</configs>
<outputDirectory>${project.build.directory}/schemas/avro</outputDirectory>
<subjectPatterns>
<param>^test_sp_</param>
</subjectPatterns>
</configuration>
<goals>
<goal>download</goal>
</goals>
</plugin>
</plugins>
</build>