users@jaxb.java.net

RE: Using the maven plugin for multiple schemas with external customization

From: Jonathan Johnson <jonjohnson_at_mail.com>
Date: Tue, 11 Jul 2006 13:02:29 -0400

Just to confirm, this is the Jaxb 2 and Maven 2 plugin?

|-----Original Message-----
|From: Joost Cassee [mailto:joost_at_cassee.net]
|Sent: Tuesday, July 11, 2006 4:37 AM
|To: users_at_jaxb.dev.java.net
|Subject: Using the maven plugin for multiple schemas with external
|customization
|
|
|There seems to be a snag with the way the maven plugin runs xjc. I have
|a project with two (unrelated) XML schemas, both of which I want to
|customize with an external binding file.
|
|However, the plugin seems to compile each schema separately, but uses
|both binding files. This causes the following error:
|
|[INFO] [jaxb:generate]
|[INFO] Compiling file:<schema1>.xsd
|[ERROR] [ERROR] "file:<schema2>.xsd" is not a part of this compilation.
|Is this a mistake
|for "file:<schema2>.xjb"?
|[ERROR] line <> of file:<schema2>.xjb
|
|(And yes, 'verbose' confirms the task finds both schemas.)
|
|Does anyone know of a way around this?
|
|
|Thanks,
|
|Joost
|
|---------------------------------------------------------------------
|To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
|For additional commands, e-mail: users-help_at_jaxb.dev.java.net
|