cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted <r6squee...@gmail.com>
Subject Re: Using wsdl2java with maven and a lot of wsdls
Date Sat, 21 Jul 2012 02:52:29 GMT
Nice, is there something similar for the HTTP version of the wsdl's? like
off the service listing?

I'd submitted a hack/patch for a prior version (2.4 I think) but I noticed
it was no longer in there for 2.6 etc. I'd gone back to manually
enumerating all the wsdl's in a shell script.


On Sat, Jul 21, 2012 at 6:45 AM, Daniel Kulp <dkulp@apache.org> wrote:

>
> 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
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>



-- 
Ted.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message