[ERROR] Maven: Could not find artifact io.confluent:kafka-avro-serializer:jar:3.3.1 in central (https://repo.maven.apache.org/maven2)


This is typical error when you first time use dependencies which are not coming from the most popular maven repository. In this case I wanted to use package which is coming from Confluent Maven repository.


You need to add missing repository. You can do it in two ways. You need to choose which one is better for you. In first option the repository will be only visible in this particular project. If you will go with second option the new repository will be visible for all your projects – it means that if you will create in the future the another project which requires packages from this repository, it will be able to pull dependencies.

  • adding directly to your project pom.xml file.
  • adding to settings.xml file

Option #1

Please include this snip of xml code in your pom.xml file:


Option #2

Put above xml code in existing profile in setting.xml or create the new one, but:

Remember: if you will create new profile you must remember to add this profile in section <activeProfiles>

If you enjoyed this post please add the comment below or share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments