users@jaxb.java.net

Re: Resolve the schema location from the classpath?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 27 Jan 2009 07:45:26 +0100

Hi.

> If I have a jar file (created by Maven as it happens) that *just* contains
> schemas that I wish to generate the JAXB representations of is it possible
> to use it (the "just schemas.jar") as input (as a dependency), pull the
> schemas from the jar file and compile them? I

I see here generally two possibilities:

1. Use Maven dependency plugin to extract schemas to some directory
and then process them as usual.
2. Use the catalog file plus catalog resolver. Here's an example:

https://maven-jaxb2-plugin.dev.java.net/svn/maven-jaxb2-plugin/trunk/samples/episode/

Bye.
/lexi