users@jaxb.java.net

Re: Resolve the schema location from the classpath?

From: ptruax <paul_at_wheatonalumni.org>
Date: Thu, 8 May 2008 05:07:53 -0700 (PDT)

From your example, it looks like you use maven. You don't have a sample pom
file I could look at do you? That would give me a big leg up. Thanks
again,
Paul



ptruax wrote:
>
> thanks for responding... I'll give it the college try!
>
>
>
>
> Malachi de Ælfweald wrote:
>>
>> Use something like JWhich (
>> http://www.javaworld.com/javaworld/javatips/jw-javatip105.html) to figure
>> out the exact uri.
>>
>> so, for example:
>> jar:file:/C:/dev/ambrosia/trunk/target/ambrosia-1.0-SNAPSHOT.jar!/org/eoti/spec/gaea/gaea-common-1.0.xsd
>>
>> On Wed, May 7, 2008 at 6:43 PM, ptruax <paul_at_wheatonalumni.org> wrote:
>>
>>>
>>> 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.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>>
>>>
>>
>>
>
>

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