users@jaxb.java.net

Re: Help with maven 2 plugin for jaxb 1.x

From: vidyamahavadi <vidya.mahavadi_at_rmb.co.za>
Date: Tue, 16 Jan 2007 02:23:15 -0800 (PST)

Hi,

I am using the same plugin org.jvnet.jaxb1.maven2 and It is generating all
Jaxb classes. However, I have a small problem. Since it is not creating the
files in the correct package that I mention in <configuration> like this..

                        <plugin>
                                <groupId>org.jvnet.jaxb1.maven2</groupId>
                                <artifactId>maven-jaxb1-plugin</artifactId>
                                <version>1.0-rc6</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>generate</goal>
                                                </goals>

                                                <configuration>
<schemaDirectory>src/main/xsd</schemaDirectory>
<packageName>za.co.rmb.calypso.binding.extract</packageName>
<outputDirectory>target/generated-sources/jaxb</outputDirectory>
</configuration>
                                        </execution>
                                </executions>
                        </plugin>

It creates the classes in the default name space (za.co.rmb). Please check
my configuration and let me know if there is anything missing. Any help on
this is much appriciated.

Thanks,
Vidya


Aleksei Valikov wrote:
>
> Hi.
>
>> Thanks Aleksei, that got me up and running. I'm unable to parse the
>> schema I'm given, I receive a lot of errors like the following
>>
>> "[ERROR] XJC while parsing schema(s)
>> file:/C:/development/pefcu/legacystatements/src/main/xsd/2001_IFX110.xsd[950,20]:
>> org.xml.sax.SAXParseException: (Relevant to above error) another
>> "BankAcctFeatLimitType" is generated from here.
>>
>> However I'm able to run it through the 2.0 plug-in successfully. Is
>> there a configuration parameter I need to set?
>
> No, you need to customize. Write an *.xjb file with bindings an put it
> into the
> src/main/resource folder.
>
> See also:
> http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp148206
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/Help-with-maven-2-plugin-for-jaxb-1.x-tf2623887.html#a8387644
Sent from the java.net - jaxb users mailing list archive at Nabble.com.