users@jaxb.java.net

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

From: Kostis Anagnostopoulos <ankostis_at_gmail.com>
Date: Tue, 11 Jul 2006 12:06:57 +0300

I suppose you are you referring to maven-2 plugin for JAXB-2.x (not
for 1.x). Is that correct ?

On 7/11/06, Joost Cassee <joost_at_cassee.net> wrote:
> 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
>
>