spring boot - Apache cxf v4.0.3 to 4.0.4 making build fail with error to execute goal to generate sources in project - Stack Ove

admin2025-04-17  4

I upgraded apache cxf v4.0.3 to 4.0.4 which is making build fail with below error:

Failed to execute goal org.apache.cxf:cxf-codegen-plugin:4.0.4:wsdl2java (generate-sources) on project
Exit code: 1
Command line was: /opt/tools/java/jdk17.0.4.1_linux-x64/bin/java --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=java.xml/com.sun.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED -jar /tmp/GSCLAIMS-GCCDATASERVICE183-TESTANDPUBLISH/cxf-tmp-12338135658495952580/cxf-codegen4068116116883184370.jar /tmp/GSCLAIMS-GCCDATASERVICE183-TESTANDPUBLISH/cxf-tmp-12338135658495952580/cxf-w2j11416424235311688218args

Before making build fail, it gives warning stating:

I upgraded apache cxf v4.0.3 to 4.0.4 which is making build fail with below error:

Failed to execute goal org.apache.cxf:cxf-codegen-plugin:4.0.4:wsdl2java (generate-sources) on project
Exit code: 1
Command line was: /opt/tools/java/jdk17.0.4.1_linux-x64/bin/java --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED -jar /tmp/GSCLAIMS-GCCDATASERVICE183-TESTANDPUBLISH/cxf-tmp-12338135658495952580/cxf-codegen4068116116883184370.jar /tmp/GSCLAIMS-GCCDATASERVICE183-TESTANDPUBLISH/cxf-tmp-12338135658495952580/cxf-w2j11416424235311688218args

Before making build fail, it gives warning stating:

Share asked Jan 31 at 4:50 KJ21KJ21 9310 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Replacing http://java.sun.com with https://jakarta.ee in wsdl_bindings.xml worked as shown in the screenshot below:

转载请注明原文地址:http://anycun.com/QandA/1744880362a88932.html