cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Hardin <matt...@exigentsol.com>
Subject wadl2java with xjc extensions
Date Thu, 25 Apr 2013 15:35:06 GMT
I cannot seem to get the wadl2java code generation to make use of xjc 
extensions (specifically the -Xbg, boolean extension). I'm hoping 
someone can point out where I'm going wrong.

Given:

<plugin>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-wadl2java-plugin</artifactId>
   <version>${cxf.version}</version>
   <executions>
     <execution>
       <id>generate-sources</id>
       <phase>generate-sources</phase>
       <goals>
         <goal>wadl2java</goal>
       </goals>
       <configuration>
<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
         <wadlOptions>
           <wadlOption>
<wadl>${basedir}/src/main/webapp/WEB-INF/wadl/services.wadl</wadl>
             <impl>false</impl>
             <interface>true</interface>
<packagename>com.foo.services.generated.resources</packagename>
             <schemaPackagenames>
<schemaPackagename>http://imp.foo.com/imp/services/common/xmlmessage/xsd=com.foo.services.generated.schema.common</schemaPackagename>
             </schemaPackagenames>
             <extraargs>
               <extraarg>-xjc-Xbg</extraarg>
               <extraarg>-verbose</extraarg>
             </extraargs>
           </wadlOption>
         </wadlOptions>
         <extensions>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-boolean:2.6.0</extension>
         </extensions>
       </configuration>
     </execution>
   </executions>
</plugin>


I keep getting:
[ERROR] Failed to execute goal 
org.apache.cxf:cxf-wadl2java-plugin:2.7.3:wadl2java (generate-sources) 
on project imp-inbound-services: 
org.apache.cxf.tools.common.toolspec.parser.BadUsageException: 
Unexpected option: -xjc-Xbg -> [Help 1]



Any help would be appreciated.
Thanks,
Matthew



-- 
Matthew Hardin
Exigent Solutions, llc
matthew@exigentsol.com
678-807-9655


Mime
View raw message