Is Maven Repository working ?

1,224 views
Skip to first unread message

nicolas d

unread,
Dec 3, 2015, 10:33:58 AM12/3/15
to Confluent Platform
Hello,

I try to add the maven repository in my pom.xml
<repository>
    <id>confluent</id>
    <url>http://packages.confluent.io/maven/</url>
</repository>
then the dependency
<dependency>
    <groupId>io.confluent</groupId>
    <artifactId>kafka-avro-serializer</artifactId>
    <version>${confluent.version}</version>
  </dependency>
But I always get Missing artifact io.confluent:kafka-avro-serializer:jar:1.0.1
Is Maven Repository working ? Because when I open the url (http://packages.confluent.io/maven/) in my browser, I get : 
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>maven/</Key>
<RequestId>89273719F2737112</RequestId>
<HostId>
V/W4Y6qWNmzlOIlV9hzlyqq1XMAiF19CdPHgmmhtBHhOaM4jXkrNbHJ/l9nCpFA4RsvrCq8xSEE=
</HostId>
</Error>

Thank you,

Ewen Cheslack-Postava

unread,
Dec 3, 2015, 5:04:40 PM12/3/15
to Confluent Platform
Nick,

It should be working. I just built an example project having cleared my local maven repository and it downloaded fine. In my log it downloaded

Downloading: http://packages.confluent.io/maven/io/confluent/kafka-avro-serializer/1.0.1/kafka-avro-serializer-1.0.1.jar

for the file you are having trouble with. The reason for the error message when visiting the base URL is that there is no file there and the way it is hosted will not give you a directory listing. However, if you try downloading the jar I linked above, you should be able to download it.

You could try adding the -U flag to your maven command, it's possible it has cached the failed download and isn't actually trying to download it again (it should retry once a day by default, if I remember 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-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/ce50bb16-fa57-4e7c-90c6-7f1664a4337c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Ewen
Reply all
Reply to author
Forward
0 new messages