java: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile on project client-java-api
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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (13 by maintainers)
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