It has an automatic scan build in.  

Just set:
 <configuration>
     <wsdlRoot>${basedir}/path/to/wsdl/dir</wsdlRoot>
 </configuration>

and it will automatically run on all the wsdl files it finds there.

Dan


On Friday, July 20, 2012 11:58:19 AM zmelnick wrote:
> Hi,
> 
> I'm working on a project where the time it takes to build all of our wsdls
> is currently upwards of 15 minutes. Currently the project is built using
> Ant, and I've read several places that the best way to use both cxf and
> wsdl2java is with maven. I've been trying to put together a test pom.xml
> to see if there are any performance gains that can be realized by
> switching. I'm skeptical, but optimistic.
> 
> However, we have more than 100 wsdl files to build, and all of the
> documentation I can find on the cxf-codegen-plugin indicates that each
> wsdl file must be listed as a separate value. We got around this in Ant
> by using a for loop that picks the next file that ends in .wsdl inside of
> our wsdl directory.
> 
> I don't want to have to list each and every single wsdl independently. Is
> there anyway to have the plugin traverse all files inside of a directory?
> 
> Here is what my current pom.xml looks like:
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>                       http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>gov.hhs.fha.nhinc</groupId>
>     <artifactId>CommonTypesLib</artifactId>
>     <version>1.0</version>
>     <packaging>jar</packaging>
>     <profiles>
>         <profile>
>             <id>CXF</id>
>             <activation>
>                 <activeByDefault>true</activeByDefault>
>             </activation>
>             <build>
>                 <plugins>
>                     <plugin>
>                         <artifactId>maven-compiler-plugin</artifactId>
>                         <configuration>
>                             <source>1.7</source>
>                             <target>1.7</target>
>                         </configuration>
>                     </plugin>
>                     <plugin>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-codegen-plugin</artifactId>
>                         <version>2.6.0</version>
>                         <executions>
>                             <execution>
>                                 <configuration>
>                                     <sourceRoot>
>                                         ../new
>                                     </sourceRoot>
> 
> <sourceDirectory>../Interfaces/src/wsdl</sourceDirectory>
>                                     <wsdlOptions>
>                                         <wsdlOption>
>                                               <extraargs>
>                                                       
> <extraarg>-verbose</extraarg>
>                                                       
> <extraarg>-client</extraarg>
>                                               </extraargs>
>                                               
<wsdl>../Interfaces/src/wsdl/AdapterAdminDistSecured.wsdl>
>                                         </wsdlOption>
>                                     </wsdlOptions>
>                                 </configuration>
>                                 <goals>
>                                     <goal>wsdl2java</goal>
>                                 </goals>
>                             </execution>
>                         </executions>
>                     </plugin>
>                 </plugins>
>             </build>
>         </profile>
>     </profiles>
> </project>
> 
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Using-wsdl2java-with-maven-and-a-lot-of-w
> sdls-tp5711369.html Sent from the cxf-user mailing list archive at
> Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to