Specifying Package Name When Using Maven to Generate Java from WSDL

后端 未结 3 2166
孤独总比滥情好
孤独总比滥情好 2021-02-19 20:15

I am using a maven script to generate the Java code I need to communicate with a WCF service. I have gotten communication working and am ready to integrate my maven script, and

3条回答
  •  长发绾君心
    2021-02-19 21:08

    The above solution with

    -p
    com.name.server.cxf
    

    Is changing package name of generated source under one single package ,because of which ObjectFactory classes are getting override.I need like package structure as it as based on wsld. Along with addition package.

    example java classes are generated as com.service.name.mypackage.a,com.service.name.mypackage.b,com.service.name.mypackage.c

提交回复
热议问题