maven - Getting java classes from multiple wsdls -
i have maven project need generate java classes multiple wsdl files. have analysed using maven plugins axistools-maven-plugin
, cxf-codegen-plugin
problem facing java files different wsdl's should go different packages.
i have checked link : http://decimalsolutions.blogspot.in/2011/10/wsdl2java-maven2.html doesn't solve problem.
how achieve this?
the documentation states can use <extraarg>
element pass in parameters wdsl java process. so, can configure cxf-codegen-plugin
in following manner
<configuration> <sourceroot>${project.build.directory}/generated-code/mywebservice</sourceroot> <wsdloptions> <wsdloption> <wsdl>${basedir}/src/main/resources/wsdl/serviceone.wsdl</wsdl> <extraargs> <extraarg>-p</extraarg> <extraarg>first.packagename</extraarg> </extraargs> </wsdloption> <wsdloption> <wsdl>${basedir}/src/main/resources/wsdl/servicetwo.wsdl</wsdl> <extraargs> <extraarg>-p</extraarg> <extraarg>another.packagename</extraarg> </extraargs> </wsdloption> </wsdloptions> </configuration>
Comments
Post a Comment