Forum Home » Fuse Distributions » Fuse Services Framework

Thread: cannot make cxf-codegen-plugin generate toString for classes

 
This question is answered.


Permlink Replies: 4 - Last Post: Apr 22, 2011 6:31 AM Last Post By: varfick Threads: [ Previous | Next ]
varfick

Posts: 16
Registered: 08/27/10
cannot make cxf-codegen-plugin generate toString for classes
Posted: Apr 20, 2011 10:40 AM
 
  Click to reply to this thread Reply
Last time (~a year ago) I used cxf-codegen-plugin with -xjc-Xts extraarg and additional dependency on cxf-xjc-ts (versioned the same as "main cxf") to generate toString for all classes based on wsdl.
For 2.3.1-fuse-01-00 I see it's not working out-of-the-box as there is no corresponding version of org.apache.cxf/cxf-xjc-ts in the repos.

Can anyone please give any hint how to make it work again?
Maybe point in the direction of a readme or example covering the change?

Regards,
Max
ffang

Posts: 1,320
Registered: 12/24/07
Re: cannot make cxf-codegen-plugin generate toString for classes
Posted: Apr 20, 2011 12:08 PM   in response to: varfick in response to: varfick
Correct
  Click to reply to this thread Reply
Hi,

Currently such tool released separately, the latest version is 2.3.2.
You can add this dependency into your pom.xml
<groupId>org.apache.cxf.xjcplugins</groupId>
<artifactId>cxf-xjc-ts</artifactId>
<version>2.3.2</version>

Freeman
varfick

Posts: 16
Registered: 08/27/10
Re: cannot make cxf-codegen-plugin generate toString for classes
Posted: Apr 20, 2011 6:08 PM   in response to: ffang in response to: ffang
 
  Click to reply to this thread Reply
Do I need to state this dependency on the project level or on the plugin level like in the past?
njiang

Posts: 572
Registered: 09/17/07
Re: cannot make cxf-codegen-plugin generate toString for classes
Posted: Apr 21, 2011 12:35 AM   in response to: varfick in response to: varfick
 
  Click to reply to this thread Reply
I think these both these two place are OK.

Willem
varfick

Posts: 16
Registered: 08/27/10
Re: cannot make cxf-codegen-plugin generate toString for classes
Posted: Apr 22, 2011 6:31 AM   in response to: njiang in response to: njiang
 
  Click to reply to this thread Reply
thanks. the xjc dependency on the plugin level + common-langs dependency on the pom level worked.