users@jaxb.java.net

Re: Resolve the schema location from the classpath?

From: Malachi de Ælfweald <malachid_at_gmail.com>
Date: Sun, 3 Aug 2008 01:12:22 -0700

I have a maven project at:
http://code.google.com/p/ambrosia/source/browse/#svn/trunk

XSDs are:
src/main/resources/org/eoti/spec/mimirdb/mimir-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-common-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-event-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-location-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-nameprefix-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-namesuffix-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-nametitle-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-person-1.0.xsd
src/main/resources/org/eoti/spec/gaea/gaea-relation-1.0.xsd

My current jaxb bit in the POM is:
                        <plugin>
                                <groupId>org.jvnet.jaxb2.maven2</groupId>
                                <artifactId>maven-jaxb2-plugin</artifactId>
                                <version>0.6.0</version>
                                <executions>
                                        <execution>
                                                <goals>

<goal>generate</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <!--
https://maven-jaxb2-plugin.dev.java.net/nonav/maven-jaxb2-plugin-project/maven-jaxb2-plugin/generate-mojo.html-->
                                        <extension>true</extension>
                                        <schemaIncludes>

<schemaInclude>**/*.xsd</schemaInclude>
                                        </schemaIncludes>
                                        <strict>false</strict>
                                </configuration>
                        </plugin>

so.... when compiling all the XSDs it autoresolves against all the other
XSDs anywhere in the tree....
couldn't we do a similar thing for the catalog?

Malachi

On Sun, Aug 3, 2008 at 12:58 AM, Aleksei Valikov <valikov_at_gmx.net> wrote:

> Hi,
>
> > Lexi,
> >
> > Currently when building, I just have it do all XSDs it finds anywhere in
> the
> > src/main/resources tree. Couldn't we just gather all of the physical
> > locations that are in the buildpath and map them automatically somehow
> > rather than require it to be maintained in the pom?
>
> Sorry, I don't get it. Could you make up an example for me?
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>