users@jaxb2-commons.java.net

Re: Problems using the Value constructor

From: Asif Jan <asif.jan_at_gmail.com>
Date: Mon, 6 Jun 2011 13:06:40 +0200

Hi

actually using ant task from jaxb2 basics plugin, instead of
com.sun.tools.xjc.XJCTask, solved the problem.

cheers


On Jun 6, 2011, at 12:43 PM, Aleksei Valikov wrote:

> Hi,
>
>> I am using jaxb version 2.1.13 and value-constructor plugin 3.0
>>
>> When I call the ant task I get error
>>
>> unrecognized parameter -Xvalue-constructor
>>
>> I used the dependencies as indicated in value-constructor pom using
>> ivy
>> e.g.
>>
>> <dependency org="com.sun.xml.bind" name="jaxb-xjc" rev="2.1.13" />
>>
>> Also does the plugin work for version 2.2
>
> Make sure the JAR is in XJC classpath.
>
> Check some of the samples here, see how Ant build.xmls are organized.
>
> http://confluence.highsource.org/display/J2B/Home
>
> Bye,
> /lexi