cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: wadl2java with xjc extensions
Date Thu, 25 Apr 2013 16:24:08 GMT
Hi

It is available in CXF 2.7.4, though the relevant wiki text is too 
small, easy to miss, sorry about it

Cheers, Sergey
On 25/04/13 16:35, Matthew Hardin wrote:
> 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
>
>
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Mime
View raw message