Maven can't resolve kafka dependencyHow can I create an executable JAR with dependencies using Maven?How should I install missing artifacts in a maven projectM2Eclipse missing artfifact (it didn't check the local repository in ~user/.m2)maven generating pom fileIs there a way to make Maven download snapshot versions automatically?Maven install missing artifactsGetting error on jar installationmaven-ant-tasks doesn't resolve the latest artifact version from the local repositoryMAVEN: This project has been banned from the build due to previous failuresMissing artifact in pom.xml com.cardboardfish:http-sms:jar:1.0

What's the explanation for this joke about a three-legged dog that walks into a bar?

Character Frequency in a String

Is the Game Boy Sharp LR35902 object-compatible with the 8080/Z-80?

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

How to write a sincerely religious protagonist without preaching or affirming or judging their worldview?

Can't understand how static works exactly

What is "ass door"?

Is it OK to accept a job opportunity while planning on not taking it?

My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?

Grid/table with lots of buttons

What is the relationship between the theme songs in Sherlock Holmes (2009 movie) and Sherlock (BBC series)?

What is a "staved" town, like in "Staverton"?

Was US film used in Luna 3?

Monty Hall Problem with a Fallible Monty

Why are MEMS in QFN packages?

Is there a way to shorten this while condition?

How can you eliminate dreaming without affecting REM sleep?

If a check is written for bill, but account number is not mentioned on memo line, is it still processed?

From the start of the game what is the longest possible series of consecutive white moves where white can do those moves no matter what black does?

What is the purpose of this "red room" in "Stranger Things"?

Is it okay to paraphrase other authors' literature reviews?

Span command across LaTeX environments

What would be the side effects on the life of a person becoming indestructible?

What rules turn any attack that hits a given target into a critical hit?



Maven can't resolve kafka dependency


How can I create an executable JAR with dependencies using Maven?How should I install missing artifacts in a maven projectM2Eclipse missing artfifact (it didn't check the local repository in ~user/.m2)maven generating pom fileIs there a way to make Maven download snapshot versions automatically?Maven install missing artifactsGetting error on jar installationmaven-ant-tasks doesn't resolve the latest artifact version from the local repositoryMAVEN: This project has been banned from the build due to previous failuresMissing artifact in pom.xml com.cardboardfish:http-sms:jar:1.0






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Intellij and Eclipse do not resolve dependencies for plugins (maven-clean-plugin, maven-install-plugin, ...) and for Kafka (org.apache.kafka:kafka-clients).



I have tried a lot of solutions:




  1. try to install it locally using this command:



    mvn install:install-file -Dfile=D:kafka_jarkafka-clients.jar 
    -DgroupId=org.apache-kafka -DartifactId=kafka-clients -Dversion=2.1.1 -Dpackaging=jar


but I got other errors shown:



in this picture



  1. Because I am working in a company, I had to use a proxy to let Maven access internet. in Intellij, I think I configured the proxy but I am not sure that Maven is using it to download (but marketplace is working and I could download plugins). or do you think it is the firewall who stop Maven?


  2. I modified settings.xml multiple times adding proxy settings, and maven central but I get the same problem, this is settings.xml:


<?xml version="1.0" encoding="UTF-8"?>
<settings>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>securecentral</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>securecentral</id>
<!--Override the repository (and pluginRepository) "central" from the
Maven Super POM -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<proxies>
<!-- Proxy for HTTP -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts>nonProxyHosts</nonProxyHosts>
</proxy>

<!-- Proxy for HTTPS -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>https</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>


</settings>


  1. I tried also to change between Maven 2 and Maven 3. when I use Maven 2, the dependencies about plugins disappear but not Kafka.









share|improve this question
























  • Formatting and grammar edits

    – PaulNUK
    Mar 26 at 15:26











  • BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

    – Gerold Broser
    Mar 26 at 15:37












  • thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

    – Djemi
    Mar 26 at 15:40

















0















Intellij and Eclipse do not resolve dependencies for plugins (maven-clean-plugin, maven-install-plugin, ...) and for Kafka (org.apache.kafka:kafka-clients).



I have tried a lot of solutions:




  1. try to install it locally using this command:



    mvn install:install-file -Dfile=D:kafka_jarkafka-clients.jar 
    -DgroupId=org.apache-kafka -DartifactId=kafka-clients -Dversion=2.1.1 -Dpackaging=jar


but I got other errors shown:



in this picture



  1. Because I am working in a company, I had to use a proxy to let Maven access internet. in Intellij, I think I configured the proxy but I am not sure that Maven is using it to download (but marketplace is working and I could download plugins). or do you think it is the firewall who stop Maven?


  2. I modified settings.xml multiple times adding proxy settings, and maven central but I get the same problem, this is settings.xml:


<?xml version="1.0" encoding="UTF-8"?>
<settings>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>securecentral</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>securecentral</id>
<!--Override the repository (and pluginRepository) "central" from the
Maven Super POM -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<proxies>
<!-- Proxy for HTTP -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts>nonProxyHosts</nonProxyHosts>
</proxy>

<!-- Proxy for HTTPS -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>https</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>


</settings>


  1. I tried also to change between Maven 2 and Maven 3. when I use Maven 2, the dependencies about plugins disappear but not Kafka.









share|improve this question
























  • Formatting and grammar edits

    – PaulNUK
    Mar 26 at 15:26











  • BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

    – Gerold Broser
    Mar 26 at 15:37












  • thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

    – Djemi
    Mar 26 at 15:40













0












0








0








Intellij and Eclipse do not resolve dependencies for plugins (maven-clean-plugin, maven-install-plugin, ...) and for Kafka (org.apache.kafka:kafka-clients).



I have tried a lot of solutions:




  1. try to install it locally using this command:



    mvn install:install-file -Dfile=D:kafka_jarkafka-clients.jar 
    -DgroupId=org.apache-kafka -DartifactId=kafka-clients -Dversion=2.1.1 -Dpackaging=jar


but I got other errors shown:



in this picture



  1. Because I am working in a company, I had to use a proxy to let Maven access internet. in Intellij, I think I configured the proxy but I am not sure that Maven is using it to download (but marketplace is working and I could download plugins). or do you think it is the firewall who stop Maven?


  2. I modified settings.xml multiple times adding proxy settings, and maven central but I get the same problem, this is settings.xml:


<?xml version="1.0" encoding="UTF-8"?>
<settings>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>securecentral</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>securecentral</id>
<!--Override the repository (and pluginRepository) "central" from the
Maven Super POM -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<proxies>
<!-- Proxy for HTTP -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts>nonProxyHosts</nonProxyHosts>
</proxy>

<!-- Proxy for HTTPS -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>https</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>


</settings>


  1. I tried also to change between Maven 2 and Maven 3. when I use Maven 2, the dependencies about plugins disappear but not Kafka.









share|improve this question
















Intellij and Eclipse do not resolve dependencies for plugins (maven-clean-plugin, maven-install-plugin, ...) and for Kafka (org.apache.kafka:kafka-clients).



I have tried a lot of solutions:




  1. try to install it locally using this command:



    mvn install:install-file -Dfile=D:kafka_jarkafka-clients.jar 
    -DgroupId=org.apache-kafka -DartifactId=kafka-clients -Dversion=2.1.1 -Dpackaging=jar


but I got other errors shown:



in this picture



  1. Because I am working in a company, I had to use a proxy to let Maven access internet. in Intellij, I think I configured the proxy but I am not sure that Maven is using it to download (but marketplace is working and I could download plugins). or do you think it is the firewall who stop Maven?


  2. I modified settings.xml multiple times adding proxy settings, and maven central but I get the same problem, this is settings.xml:


<?xml version="1.0" encoding="UTF-8"?>
<settings>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>securecentral</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>securecentral</id>
<!--Override the repository (and pluginRepository) "central" from the
Maven Super POM -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<proxies>
<!-- Proxy for HTTP -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts>nonProxyHosts</nonProxyHosts>
</proxy>

<!-- Proxy for HTTPS -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>https</protocol>
<username>myUsername</username>
<password>myPassword</password>
<host>host</host>
<port>80</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>


</settings>


  1. I tried also to change between Maven 2 and Maven 3. when I use Maven 2, the dependencies about plugins disappear but not Kafka.






java maven apache-kafka






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 10:07









JimHawkins

3,2278 gold badges23 silver badges47 bronze badges




3,2278 gold badges23 silver badges47 bronze badges










asked Mar 26 at 15:08









DjemiDjemi

1




1












  • Formatting and grammar edits

    – PaulNUK
    Mar 26 at 15:26











  • BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

    – Gerold Broser
    Mar 26 at 15:37












  • thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

    – Djemi
    Mar 26 at 15:40

















  • Formatting and grammar edits

    – PaulNUK
    Mar 26 at 15:26











  • BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

    – Gerold Broser
    Mar 26 at 15:37












  • thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

    – Djemi
    Mar 26 at 15:40
















Formatting and grammar edits

– PaulNUK
Mar 26 at 15:26





Formatting and grammar edits

– PaulNUK
Mar 26 at 15:26













BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

– Gerold Broser
Mar 26 at 15:37






BTW, that's not the problem here but it's -DgroupId=org.apache.kafka (with a '.') rather than -DgroupId=org.apache-kafka (with a '-').

– Gerold Broser
Mar 26 at 15:37














thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

– Djemi
Mar 26 at 15:40





thanks, I tried it but I got the same problem " Failed to retrieve plugin descriptor for org.apache.maven.plugins"

– Djemi
Mar 26 at 15:40












2 Answers
2






active

oldest

votes


















0














Most likely, you have proxy/firewall issues. You may have misconfigured the proxy in your POM or your proxy/firewall may block your requests.



Speak with your admin (the one responsible for proxy/firewall) if the proxy allows such requests and if not, how to remedy the situation.






share|improve this answer






























    0














    Locate your maven settings.xml file - typically this is under .m2 folder in your home directory (C:UsersXYZ in Windows or /home/xyz in Mac/Linux).



    Add below entry



    <proxies>
    <!-- proxy
    | Specification for one proxy, to be used in connecting to the network.
    |
    -->
    <proxy>
    <id>optional</id>
    <active>true</active>
    <protocol>http</protocol>
    <!-- <username>proxyuser</username>
    <password>proxypass</password> These may not be required -->
    <host>yourProxyHost</host>
    <port>yourProxyPort</port>
    <nonProxyHosts>*.company.com|127.0.0.1|localhost</nonProxyHosts>
    </proxy>




    Make sure a mvn clean install works from a command prompt, and then check your IDE.






    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360448%2fmaven-cant-resolve-kafka-dependency%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Most likely, you have proxy/firewall issues. You may have misconfigured the proxy in your POM or your proxy/firewall may block your requests.



      Speak with your admin (the one responsible for proxy/firewall) if the proxy allows such requests and if not, how to remedy the situation.






      share|improve this answer



























        0














        Most likely, you have proxy/firewall issues. You may have misconfigured the proxy in your POM or your proxy/firewall may block your requests.



        Speak with your admin (the one responsible for proxy/firewall) if the proxy allows such requests and if not, how to remedy the situation.






        share|improve this answer

























          0












          0








          0







          Most likely, you have proxy/firewall issues. You may have misconfigured the proxy in your POM or your proxy/firewall may block your requests.



          Speak with your admin (the one responsible for proxy/firewall) if the proxy allows such requests and if not, how to remedy the situation.






          share|improve this answer













          Most likely, you have proxy/firewall issues. You may have misconfigured the proxy in your POM or your proxy/firewall may block your requests.



          Speak with your admin (the one responsible for proxy/firewall) if the proxy allows such requests and if not, how to remedy the situation.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 15:24









          JF MeierJF Meier

          11.6k5 gold badges31 silver badges71 bronze badges




          11.6k5 gold badges31 silver badges71 bronze badges























              0














              Locate your maven settings.xml file - typically this is under .m2 folder in your home directory (C:UsersXYZ in Windows or /home/xyz in Mac/Linux).



              Add below entry



              <proxies>
              <!-- proxy
              | Specification for one proxy, to be used in connecting to the network.
              |
              -->
              <proxy>
              <id>optional</id>
              <active>true</active>
              <protocol>http</protocol>
              <!-- <username>proxyuser</username>
              <password>proxypass</password> These may not be required -->
              <host>yourProxyHost</host>
              <port>yourProxyPort</port>
              <nonProxyHosts>*.company.com|127.0.0.1|localhost</nonProxyHosts>
              </proxy>




              Make sure a mvn clean install works from a command prompt, and then check your IDE.






              share|improve this answer



























                0














                Locate your maven settings.xml file - typically this is under .m2 folder in your home directory (C:UsersXYZ in Windows or /home/xyz in Mac/Linux).



                Add below entry



                <proxies>
                <!-- proxy
                | Specification for one proxy, to be used in connecting to the network.
                |
                -->
                <proxy>
                <id>optional</id>
                <active>true</active>
                <protocol>http</protocol>
                <!-- <username>proxyuser</username>
                <password>proxypass</password> These may not be required -->
                <host>yourProxyHost</host>
                <port>yourProxyPort</port>
                <nonProxyHosts>*.company.com|127.0.0.1|localhost</nonProxyHosts>
                </proxy>




                Make sure a mvn clean install works from a command prompt, and then check your IDE.






                share|improve this answer

























                  0












                  0








                  0







                  Locate your maven settings.xml file - typically this is under .m2 folder in your home directory (C:UsersXYZ in Windows or /home/xyz in Mac/Linux).



                  Add below entry



                  <proxies>
                  <!-- proxy
                  | Specification for one proxy, to be used in connecting to the network.
                  |
                  -->
                  <proxy>
                  <id>optional</id>
                  <active>true</active>
                  <protocol>http</protocol>
                  <!-- <username>proxyuser</username>
                  <password>proxypass</password> These may not be required -->
                  <host>yourProxyHost</host>
                  <port>yourProxyPort</port>
                  <nonProxyHosts>*.company.com|127.0.0.1|localhost</nonProxyHosts>
                  </proxy>




                  Make sure a mvn clean install works from a command prompt, and then check your IDE.






                  share|improve this answer













                  Locate your maven settings.xml file - typically this is under .m2 folder in your home directory (C:UsersXYZ in Windows or /home/xyz in Mac/Linux).



                  Add below entry



                  <proxies>
                  <!-- proxy
                  | Specification for one proxy, to be used in connecting to the network.
                  |
                  -->
                  <proxy>
                  <id>optional</id>
                  <active>true</active>
                  <protocol>http</protocol>
                  <!-- <username>proxyuser</username>
                  <password>proxypass</password> These may not be required -->
                  <host>yourProxyHost</host>
                  <port>yourProxyPort</port>
                  <nonProxyHosts>*.company.com|127.0.0.1|localhost</nonProxyHosts>
                  </proxy>




                  Make sure a mvn clean install works from a command prompt, and then check your IDE.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 22:26









                  BajalBajal

                  2,7371 gold badge13 silver badges19 bronze badges




                  2,7371 gold badge13 silver badges19 bronze badges



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360448%2fmaven-cant-resolve-kafka-dependency%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                      155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해