Hi Dan,

for some time I have searched for a jaxb extension that generates a contructor with all attributes. I have now found two implementations from jaxb2-commons value constructor or even more interesting fluent api.

https://jaxb2-commons.dev.java.net/value-constructor/
https://jaxb2-commons.dev.java.net/fluent-api/

The problem is that fluent api only seems to be available in the java.net repo and value-constructor seems to be not available in maven. So my question is do you know any other source where to get them for maven? If not then I propose to add the most interesting jaxb2-commons extensions to the central repo or even to cxf commons xjc. They seem to have the apache license so it should be ok to do so.

Greetings

Christian

Am 25.01.2010 17:58, schrieb Daniel Kulp:
Christian,

You need to add the appropriate JAXB XJC plugin to the deps of the codegen
plugin.  This should be done in your "root poms" pluginManagement section.

<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<dependencies>
     <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-xjc-ts</artifactId>
         <version>${cxf.version}</version>
      </dependency>
</dependencies>
<executions>
.....
</executions>
</plugin>

That will allow the plugin to pick up that plugin.

--

Christian Schneider
---
http://www.liquid-reality.de

Reply via email to