I believe it would be:

                        <extraarg>-b</extraarg>
                        <extraarg>
                             ${basedir}/${schema.location}/binding1.xjb
                        </extraarg>
                        <extraarg>-b</extraarg>
                        <extraarg>
                            ${basedir}/${schema.location}/binding2.xjb
                        </extraarg>


Dan


On May 19, 2008, at 2:41 PM, bronchito wrote:


Hi,

how can I use more then one binding file in my <wsdlOptions> ?

If you run wsdlToJava on the command line, it is possible to add more then
one binding file with the -b option. (space seperated)

But how should i realize it in maven ?

My configuration looks like :

        <plugin>
           <groupId>org.apache.cxf</groupId>
           <artifactId>cxf-codegen-plugin</artifactId>
           <version>${cxf-codegen-plugin.version}</version>
           <executions>
             <execution>
                <id>generate-sources</id>
                <phase>generate-sources</phase>
                <goals>
                   <goal>wsdl2java</goal>
                </goals>
                <configuration>
                  <sourceRoot>
                     ${basedir}/src/generated/java
                </sourceRoot>
                <wsdlOptions>
                   <wsdlOption>
                      <wsdl>
                        ${basedir}/${schema.location}/<myWSDL>.wsdl
                      </wsdl>
                      <extraargs>
                        <extraarg>-b</extraarg>
                        <extraarg>
                             ${basedir}/${schema.location}/binding1.xjb
                        </extraarg>
                        <extraarg>
                            ${basedir}/${schema.location}/binding2.xjb
                        </extraarg>
                      </extraargs> ..........................

If i execute these configuration, the following failure occures:

WSDLToJava Error :
org.apache.cxf.tools.common.toolspec.parser.BadUsageException: Unexpected
argumen


I also tried to seperate the binding-files with spaces (within one
<extraarg> - tag) but then, the plugin use it as one file name.

Can someone help me.


Greetings

Bronchito



--
View this message in context: 
http://www.nabble.com/Maven2-codegen-plugin-using-more-binding-files-tp17325324p17325324.html
Sent from the cxf-user mailing list archive at Nabble.com.


---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to