users@jaxb.java.net

Re: Resolve the schema location from the classpath?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 20 Nov 2006 14:38:06 -0800

James Mao wrote:
> entity resolver you mentioned may solve my problem, but i don't know how
> to add the entity resolver into the xjc maven plugin, do you know how or
> where's the doc?

I believe the plugin should have associated documents. If not, please
contact their authors.


> I think the catalog has the same problem, it'll not look into the
> classpath to resolve the schemaLocation, right?

The issue is really not so much as to whether something can "look into
the classpath". All the resources in a jar has an URL. So all you need
to do is to make sure XJC gets that URL.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com