Confluent Maven repository not working?

后端 未结 5 865
太阳男子
太阳男子 2020-12-29 23:08

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



        
5条回答
  •  醉酒成梦
    2020-12-29 23:28

    Just like you I use a company repository (Sonatype Nexus) and was not able to proxy the confluent's repository.

    Then I changed my maven settings.xml to exclude confluent form the mirrored repository:

        
            
                nexus
                *,!confluent 
                repository.company.local/nexus/content/groups/public
            
        
        ...
            
                ...
                
                    confluent
                    http://packages.confluent.io/maven/
                
            
    

    This way, artifacts resolution works for confluents' artifacts as well.

    Not as neat as proxying the repo but at least less cumbersome than downloading and registering each dependency manually.

提交回复
热议问题