Confluent Maven repository not working?

1,102 views
Skip to first unread message

Giulio Vito de Musso

unread,
Apr 19, 2017, 3:50:09 AM4/19/17
to Confluent Platform

Hello,


I need to use the Confluent kafka-avro-serializer Maven artifact. From the official guide I should add this repository to my Maven pom


<repository>
 
<id>confluent</id>
 
<url>http://packages.confluent.io/maven/</url>
</repository>


The problem is that the URL http://packages.confluent.io/maven/ seems to not work at the moment as I get the response below


<Error>
 
<Code>NoSuchKey</Code>
 
<Message>The specified key does not exist.</Message>
 
<Key>maven/</Key>
 
<RequestId>15E287D11E5D4DFA</RequestId>
 
<HostId>
    QVr9lCF0y3SrQoa1Z0jDWtmxD3eJz1gAEdivauojVJ+Bexb2gB6JsMpnXc+JjF95i082hgSLJSM=
 
</HostId>
</Error>


In fact Maven does not find the artifact


<dependency>
 
<groupId>io.confluent</groupId>
 
<artifactId>kafka-avro-serializer</artifactId>
 
<version>3.1.1</version>
</dependency>


Do you know what the problem could be?

Thank you

Sreejith S

unread,
Apr 19, 2017, 8:03:46 AM4/19/17
to Confluent Platform
Try this

<repositories>
<repository>
<id>confluent</id>
<name>Confluent</name>
</repository>
</repositories>

Ewen Cheslack-Postava

unread,
Apr 20, 2017, 1:43:48 AM4/20/17
to Confluent Platform
As Sreejith mentions, you'll need the right settings in your pom.xml or ~/.m2/settings.xml.

The error message for packages.confluent.io/maven is expected -- the site is not browsable and maven doesn't provide a root index file, so it is returning a 404 (with an error message as shown). The site, however, is still up and maven will be able to retrieve data from it if configured correctly.

-Ewen

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/629410e8-c918-4de1-8175-e7adfeb513fa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Giulio Vito de Musso

unread,
Apr 20, 2017, 3:21:05 AM4/20/17
to Confluent Platform
Thanks. I'm using the company Artifactory server so I have to add the Confluent Maven repository to it in order to download the dependencies
Reply all
Reply to author
Forward
0 new messages