[
https://jira.codehaus.org/browse/MJAXB-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anders Hammar closed MJAXB-32.
------------------------------
Resolution: Not A Bug
Assignee: Anders Hammar
This is not a bug in the plugin. Both xsd contain an element with the same
name. This does not work with native xjc either.
Also see MJAXB-38, which is the same error.
Possibly, but I'm not sure, you could have the same element name if you add
some binding magic.
> org.xml.sax.SAXParseException: 'root' is already defined
> --------------------------------------------------------
>
> Key: MJAXB-32
> URL: https://jira.codehaus.org/browse/MJAXB-32
> Project: Maven 2.x JAXB 2.1 Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: >mvn --version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_16
> Java home: C:\java\jdk160_16\jre
> Default locale: de_CH, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: rupert thurner
> Assignee: Anders Hammar
> Priority: Critical
> Attachments: mulitple-schema-testcase.zip
>
>
> having two schemas in the same location and using:
> <configuration>
> <schemaDirectory>src/main/resources</schemaDirectory>
> <schemaFiles>test-input.xsd,deploy.xsd</schemaFiles>
> </configuration>
> results in:
> mvn compile
> org.xml.sax.SAXParseException: 'root' is already defined
> ....
> doing 2 separate runs work having only one of the files in schemaFiles. xjc
> native as well work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email