码迷,mamicode.com
首页 > 编程语言 > 详细

Maven CXF wsdl2Java 给指定全名空间设置包名

时间:2018-06-30 10:59:47      阅读:747      评论:0      收藏:0      [点我收藏+]

标签:soaphead   ade   version   als   artifact   2.4   TE   3.2   generate   

 

<plugin>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-codegen-plugin</artifactId>
    <version>3.2.4</version>
    <executions>
        <execution>
            <id>generate-sources-w2j</id>
            <phase>generate-sources</phase>
            <configuration>
                <sourceRoot>src/main/java</sourceRoot>
                <wsdlOptions>
                    <wsdlOption>
                        <wsdl>${basedir}\src\main\resources\wsdl\20180628-OnePoint.svc-D11V2-single.wsdl</wsdl>
                        <extendedSoapHeaders>true</extendedSoapHeaders>
                        <autoNameResolution>true</autoNameResolution>
                        <bindingFiles>
                            <bindingFile>${basedir}\src\main\resources\wsdl\jaxb-bindings.xml</bindingFile>
                        </bindingFiles>
                        <extraargs>
                            <extraarg>-p</extraarg>
                            <extraarg>http://schemas.microsoft.com/2003/10/Serialization/=wsclient.mystifly.com.microsoft.schemas._2003._10.serialization</extraarg>
                            <extraarg>-p</extraarg>
                            <extraarg>http://schemas.microsoft.com/2003/10/Serialization/Arrays=wsclient.mystifly.com.microsoft.schemas._2003._10.serialization.arrays</extraarg><extraarg>-p</extraarg>
                            <extraarg>Mystifly.OnePoint=wsclient.mystifly.onepoint.mystifly</extraarg>
                            <extraarg>-p</extraarg>
                            <extraarg>Mystifly.OnePoint.OnePointEntities=wsclient.mystifly.onepointentities.onepoint.mystifly</extraarg>
                            <extraarg>-p</extraarg>
                            <extraarg>http://schemas.datacontract.org/2004/07/Mystifly.OnePoint=wsclient.mystifly.org.datacontract.schemas._2004._07.mystifly</extraarg><extraarg>-p</extraarg>
                            <extraarg>http://schemas.datacontract.org/2004/07/Mystifly.OnePoint.AirRules1_1=wsclient.mystifly.org.datacontract.schemas._2004._07.mystifly_onepoint</extraarg>
                        </extraargs>
                    </wsdlOption>
                </wsdlOptions>
            </configuration>
            <goals>
                <goal>wsdl2java</goal>
            </goals>
        </execution>
    </executions>
</plugin> 

 

Maven CXF wsdl2Java 给指定全名空间设置包名

标签:soaphead   ade   version   als   artifact   2.4   TE   3.2   generate   

原文地址:https://www.cnblogs.com/boazy/p/9246010.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!