users@jaxb.java.net

Re: Resolve the schema location from the classpath?

From: ptruax <paul_at_wheatonalumni.org>
Date: Wed, 7 May 2008 18:43:08 -0700 (PDT)

I'm totally confused! I've been searching the net and just can't figure out
how I can resolve the xsd from the classpath. I understand what you were
saying that it isn't so much about the classpath, but rather about
referencing the right uri, but how do you do that? puzzled, frustrated, ...
Paul




Kohsuke Kawaguchi wrote:
>
> 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
>
>
>

-- 
View this message in context: http://www.nabble.com/Resolve-the-schema-location-from-the-classpath--tp7372851p17117638.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.