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;
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:
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:

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?
I modified
settings.xmlmultiple times adding proxy settings, and maven central but I get the same problem, this issettings.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>
- 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
add a comment |
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:
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:

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?
I modified
settings.xmlmultiple times adding proxy settings, and maven central but I get the same problem, this issettings.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>
- 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
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
add a comment |
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:
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:

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?
I modified
settings.xmlmultiple times adding proxy settings, and maven central but I get the same problem, this issettings.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>
- 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
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:
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:

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?
I modified
settings.xmlmultiple times adding proxy settings, and maven central but I get the same problem, this issettings.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>
- 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
java maven apache-kafka
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
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
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 26 at 22:26
BajalBajal
2,7371 gold badge13 silver badges19 bronze badges
2,7371 gold badge13 silver badges19 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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