maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Schuster <>
Subject XJC/XSD dependancies
Date Mon, 29 Nov 2010 21:35:36 GMT

I have a couple projects in that use XJC via the org.jvnet.jaxb2.maven2 plugin.

The problem I'm running into is when the XSD of one project depends on the XSD of another.

I can't seem to find a good 'maven-esq' way to deal with this. Right now I'm unpacking the
xsds from the dependency jars (via the maven-dependency-plugin) and referencing them using
a relative path:




In child.xsd

<import schemaLocation="../../../../target/dependencies/parent.project/schema/parent.xsd"

Seems there should be a way to reference a file within a maven dependency without having to
unpack it first.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message