question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile on project client-java-api

See original GitHub issue

Hi,

Could you please help me with the following issue I got while executing mvn install:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project client-java-api: Compilation failure: Compilation failure: 
[ERROR] /Projects/kub/java/kubernetes/target/generated-sources/annotations/io/kubernetes/client/fluent/VisitableMap.java:[37,27] name clash: forEach(java.util.function.Consumer<?>) in io.kubernetes.client.fluent.VisitableMap and forEach(java.util.function.Consumer<? super io.kubernetes.client.fluent.Visitable>) in java.lang.Iterable have the same erasure, yet neither overrides the other
[ERROR] /Projects/kub/java/kubernetes/target/generated-sources/annotations/io/kubernetes/client/fluent/VisitableMap.java:[37,5] method does not override or implement a method from a supertype
[ERROR] /Projects/kub/java/kubernetes/target/generated-sources/annotations/io/kubernetes/client/fluent/VisitableMap.java:[38,33] incompatible types: java.util.function.Consumer<capture#1 of ?> cannot be converted to java.util.function.Consumer<? super io.kubernetes.client.fluent.Visitable>
[ERROR] -> [Help 1]

Java version: 13, maven 3.6.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
adarshanscommented, Oct 5, 2022

how to resolve comiler failure error only in jeniins not in eclips in eclips maven test will get success but it will show Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SkillraryEcommerceProject: Compilation failure: Compilation failure: why this happens i have installed all the JRE’s and JDK,maven ,git all the thngs installed and added to jenkins. a simple project with one line code can run successfully in jenkins but try with the Huge Frame Work Code it will fails the build

0reactions
brendandburnscommented, Sep 18, 2020

We now have integration tests for Java 8 -> 13 and they are all passing. Closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven build Compilation error : Failed to execute goal org ...
Using java 12, I am able to do clean package on my simple project via the command line. But when I try to...
Read more >
Failed to execute goal org.apache.maven.plugins ... - GitHub
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project navigator-sdk-examples: Compilation failure ...
Read more >
Solve [ERROR] Failed to execute goal org.apache.maven ...
Solve [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven: Compilation failure: ...
Read more >
Failed to execute goal org.apache.maven.plugins:ma...
Failed to execute goal ... but when trying to atlas-run on myplugin directory I get this: Capture.PNG.
Read more >
Failed To Execute Goal Org.Apache.Maven.Plugins ... - ADocLib
Getting the following error on executing a Jenkins maven job. Jenkins-Maven ERROR Failed to execute goal org apache maven plugins maven-compiler-plugin 3 1 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found