cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: howto generate WSDL for all services in a project? howto generate Java from all WSDL in a project
Date Mon, 02 Mar 2009 19:06:48 GMT
On Sat February 28 2009 7:30:14 pm hanasaki jiji wrote:
> http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html
>
> = WSDL2Java
> After looking at the above link, it appears that each webservice =>
> Java generation must have an explicit POM.xml update for a new line
> containing the WSDL.  Is there any way to have maven scan all its
> project directories (or a pattern of directories) and generate source
> for all WSDL files found?

With 2.1, the plugin allows generating code for all the wsdl's in a single 
directory.   All the wsdl's you stick in src/main/resources/wsdl get 
processed.   ALternatively, add the wsdlRoot param to the plugin to change the 
directory to something else.     It doesn't scan everything though.

Feel free to log a jira, and a patch would be nice as well.   :-)

> == Java2WSDL
> After looking at the above link, it appears that each Java => WSDL
> generation must have an explicit POM.xml update for a new line
> containing the fully qualified class name from which the WSDL will be
> genrrated.  Is there any way to have maven scan all its project
> directories (or a pattern of directories) and generate WSDL for all
> Java  files found?  Can this be done with just classnames and the
> annotation metadata in them without source available?

Not right now.  Log a jira (and a patch).    :-)

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

Mime
View raw message