Maven-cxf-plugin

 

<plugin>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-codegen-plugin</artifactId>

<version>${cxf.version}</version>

<executions>

<execution>

<id>generate-sources</id>

<phase>generate-sources</phase>

<configuration>

<!-- 默认的产生wsdl sources 的位置。可以省略不写 -->

<!-- <sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot> -->

 

<!-- 另一种指定wsdl档案的方式 -->

<!-- <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/</wsdl> 

</wsdlOption> </wsdlOptions> -->

 

<!-- 默认的wsdl档案地址 ,也可以省略 -->

<wsdlRoot>${basedir}/src/main/resources/wsdl</wsdlRoot>

<includes>

<include>*.wsdl</include>

</includes>

</configuration>

<goals>

<goal>wsdl2java</goal>

</goals>

</execution>

</executions>

<configuration>

</configuration>

</plugin>

你可能感兴趣的:(apache,maven)