When I add the plugin to the pom file, I get an error on the application and I cannot create my service.
I'm trying to get the cxf-codegen-plugin to generate sources from my wsdl file.I did research but couldn't find a solution.I need your help.
console output:in the problems tab
Error: Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.1.6:wsdl2java failed: A required class was missing while executing org.apache.cxf:cxf-codegen-plugin:3.1.6:wsdl2java: javax/xml/bind/annotation/adapters/HexBinaryAdapter
error resource: pom.xml
POM.XML
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
.......................................................................................................
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.1.6</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/src/main/java/</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/ProjectName.wsdl</wsdl>
<extraargs>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Windows 10, x64, Jdk1.8.0_212,Spring Tools Suite(4.9.0.RELEASE)
Spring tools suite Features: Jdk Compiler :1.8. Installed JREs:jre1.8.0_241
My English language is not good.Excuse me.
Thank you.