新火炬后端单体项目初始化代码
zhangherong
2025-08-15 b40cfc1d6bc01ae70883671074b8d26f83fc90d1
pom.xml
@@ -582,6 +582,32 @@
                    </nonFilteredFileExtensions>
                </configuration>
            </plugin>
            <!-- CXF Codegen Plugin:根据 WSDL 生成 Java 客户端代码 -->
            <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>3.5.5</version> <!-- 你可以使用最新的稳定版本,比如 3.5.6 / 4.x -->
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                        <configuration>
                            <!-- 指定生成的 Java 类 放在哪个目录下(通常是 target/generated-sources/cxf) -->
                            <sourceRoot>${project.basedir}/target/generated-sources/cxf</sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    <wsdl>${basedir}/src/main/resources/wsdl/WebService.asmx.wsdl</wsdl>
                                    <!-- 或者直接使用 WSDL 的网络地址 -->
                                    <!-- <wsdl>http://10.101.0.182:8002/MesWebService/WebService.asmx?wsdl</wsdl> -->
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>