You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Per Olesen <po...@nordija.com> on 2008/04/28 09:30:25 UTC

Only generate wsdl if server-API changed (cxf-codegen-plugin)

Hi,

Is there any way to have the cxf-codegen-plugin (target "java2wsdl",
executed through maven) only generate the wsdl if the class it depends
upon (through "className" parameter) has changed?

I have a build, where I generate nine (9) wsdl files from my server impls,
and it takes some time, each time I execute maven. Just a bit irritating,
as it makes the build process slower.

I guess I can always escape into ant, with maven-antrun-plugin, and use
its "if" and "unless" feature, but I would like to avoid that, if the
maven plugin can help me here.

?

/Per

Re: Only generate wsdl if server-API changed (cxf-codegen-plugin)

Posted by Daniel Kulp <dk...@apache.org>.
It's a good suggestion, but very complex to actually implement.  What if 
one of the beans changes?  It should re-run then as well to get the new 
schema.   A classloader or something would need to be written to 
completely record all the classes and store them in the target dir 
someplace.    Feel free to log a feature request.  :-)

Another thing I keep meaning to do (especially for wsdl2java plugin) is 
to multi-thread the thing.   The wsdl2java plugin allows configuration 
of multiple wsdls in one configuration block (java2ws doesn't right now) 
  which could allow the plugin to fork them all and let them all go 
nuts.    For those of us with multi-core machines, it could help.

Dan


Per Olesen wrote:
> Hi,
> 
> Is there any way to have the cxf-codegen-plugin (target "java2wsdl",
> executed through maven) only generate the wsdl if the class it depends
> upon (through "className" parameter) has changed?
> 
> I have a build, where I generate nine (9) wsdl files from my server impls,
> and it takes some time, each time I execute maven. Just a bit irritating,
> as it makes the build process slower.
> 
> I guess I can always escape into ant, with maven-antrun-plugin, and use
> its "if" and "unless" feature, but I would like to avoid that, if the
> maven plugin can help me here.
> 
> ?
> 
> /Per

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog