Maven Apache cxf codegen插件未在Spring工具套件中生成Java存根

Maven Apache cxf codegen插件未在Spring工具套件中生成Java存根,maven,web-services,wsdl2java,cxf-codegen-plugin,Maven,Web Services,Wsdl2java,Cxf Codegen Plugin,我尝试过许多解决办法,但似乎没有一个对我有效。从CO.wsdl文件生成Java存根时遇到问题。生成成功,但未生成类 pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta

我尝试过许多解决办法,但似乎没有一个对我有效。从CO.wsdl文件生成Java存根时遇到问题。生成成功,但未生成类

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.11.RELEASE</version>
    <relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.mayukh.ws.soap</groupId>
<artifactId>wsdlfirstws</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>wsdlfirstws</name>
<description>WSDL First</description>
<properties>
    <java.version>1.8</java.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>

    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
        <version>3.4.3</version>
    </dependency>

    <dependency>
        <groupId>org.apache.cxf.xjc-utils</groupId>
        <artifactId>cxf-xjc-runtime</artifactId>
        <version>2.7.0</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>3.4.3</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <sourceRoot>generated/cxf</sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    <wsdl>src/main/resources/CO.wsdl</wsdl>
                                    <wsdlLocation>classpath:CO.wsdl</wsdlLocation>
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

4.0.0
org.springframework.boot
spring启动程序父级
2.3.11.1发布
com.mayukh.ws.soap
wsdlfirstws
0.0.1-快照
wsdlfirstws
WSDL优先
1.8
org.springframework.boot
弹簧靴起动器
org.apache.cxf
cxf弹簧引导启动器jaxws
3.4.3
org.apache.cxf.xjc-utils
cxf xjc运行时
2.7.0
org.springframework.boot
弹簧起动试验
测试
org.junit.vintage
朱尼特老式发动机
org.springframework.boot
springbootmaven插件
org.apache.cxf
cxf-codegen插件
3.4.3
生成源
生成源
生成/cxf
src/main/resources/CO.wsdl
类路径:CO.wsdl
wsdl2java
WSDL文件:CO.WSDL-->


我已经尝试过多次Maven clean安装

同时,这些类正在使用xjc命令生成,但端口接口没有生成

<?xml version='1.0' encoding='UTF-8'?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://trainings.ws.bharath.com/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
name="CustomerOrdersService" targetNamespace="http://trainings.ws.bharath.com/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://trainings.ws.bharath.com/" elementFormDefault="unqualified"
    targetNamespace="http://trainings.ws.bharath.com/" version="1.0">

    <xs:complexType name="order">
        <xs:sequence>
            <xs:element name="id" type="xs:integer" />
            <xs:element maxOccurs="unbounded" name="product" type="tns:product" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="product">
        <xs:sequence>
            <xs:element minOccurs="0" name="id" type="xs:string" />
            <xs:element minOccurs="0" name="description" type="xs:string" />
            <xs:element minOccurs="0" name="quantity" type="xs:integer" />
        </xs:sequence>
    </xs:complexType>

    <xs:element name="getOrdersRequest" type="tns:getOrdersRequest" />

    <xs:element name="getOrdersResponse" type="tns:getOrdersResponse" />

    <xs:complexType name="getOrdersRequest">
        <xs:sequence>
            <xs:element minOccurs="0" name="customerId" type="xs:integer" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="getOrdersResponse">
        <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="order"
                type="tns:order" />
        </xs:sequence>
    </xs:complexType>

    <xs:element name="createOrdersRequest" type="tns:createOrdersRequest" />

    <xs:element name="createOrdersResponse" type="tns:createOrdersResponse" />

    <xs:complexType name="createOrdersRequest">
        <xs:sequence>
            <xs:element name="customerId" type="xs:integer" />
            <xs:element name="order" type="tns:order" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="createOrdersResponse">
        <xs:sequence>
            <xs:element name="result" type="xs:boolean" />
        </xs:sequence>
    </xs:complexType>

    </xs:schema>
</wsdl:types>

<wsdl:message name="getOrdersRequest">
    <wsdl:part element="tns:getOrdersRequest" name="parameters">
    </wsdl:part>
</wsdl:message>
<wsdl:message name="getOrdersResponse">
    <wsdl:part element="tns:getOrdersResponse" name="parameters">
    </wsdl:part>
</wsdl:message>

<wsdl:message name="createOrdersRequest">
    <wsdl:part element="tns:createOrdersRequest" name="parameters">
    </wsdl:part>
</wsdl:message>
<wsdl:message name="createOrdersResponse">
    <wsdl:part element="tns:createOrdersResponse" name="parameters">
    </wsdl:part>
</wsdl:message>

<wsdl:portType name="CustomerOrdersPortType">
    <wsdl:operation name="getOrders">
        <wsdl:input message="tns:getOrdersRequest" name="getOrdersRequest">
        </wsdl:input>
        <wsdl:output message="tns:getOrdersResponse" name="getOrdersResponse">
        </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="createOrders">
        <wsdl:input message="tns:createOrdersRequest" name="createOrdersRequest">
        </wsdl:input>
        <wsdl:output message="tns:createOrdersResponse" name="createOrdersResponse">
        </wsdl:output>
    </wsdl:operation>
</wsdl:portType>

<wsdl:binding name="CustomerOrdersServiceSoapBinding"
    type="tns:CustomerOrdersPortType">
    <soap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getOrders">
        <soap:operation soapAction="" style="document" />
        <wsdl:input name="getOrdersRequest">
            <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output name="getOrdersResponse">
            <soap:body use="literal" />
        </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="createOrders">
        <soap:operation soapAction="" style="document" />
        <wsdl:input name="createOrdersRequest">
            <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output name="createOrdersResponse">
            <soap:body use="literal" />
        </wsdl:output>
    </wsdl:operation>
</wsdl:binding>

<wsdl:service name="CustomerOrdersService">
    <wsdl:port binding="tns:CustomerOrdersServiceSoapBinding"
        name="CustomerOrdersPort">
        <soap:address
            location="http://localhost:8080/wsdlfirstws/services/customerOrdersService" />
    </wsdl:port>
</wsdl:service>
 </wsdl:definitions>