Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 61142 invoked from network); 29 Nov 2010 21:36:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 21:36:10 -0000 Received: (qmail 21172 invoked by uid 500); 29 Nov 2010 21:36:08 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 20955 invoked by uid 500); 29 Nov 2010 21:36:08 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 20944 invoked by uid 99); 29 Nov 2010 21:36:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 21:36:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.129.69.64] (HELO oracle.NAVSYS.COM) (64.129.69.64) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 21:35:59 +0000 Received: from Dualla.NAVSYS.COM ([172.16.4.26]) by oracle.NAVSYS.COM with Microsoft SMTPSVC(6.0.3790.4675); Mon, 29 Nov 2010 14:35:36 -0700 Received: from Dualla.NAVSYS.COM ([fe80::fcc7:35b8:a03e:c602]) by Dualla.NAVSYS.COM ([fe80::fcc7:35b8:a03e:c602%12]) with mapi; Mon, 29 Nov 2010 14:35:36 -0700 From: Joel Schuster To: "users@maven.apache.org" Date: Mon, 29 Nov 2010 14:35:36 -0700 Subject: XJC/XSD dependancies Thread-Topic: XJC/XSD dependancies Thread-Index: AcuQDVvj1b9GKPPBSe2xp2Fmiug8Ew== Message-ID: <22C014AD6A8EBE4EA681FC0D275E4F150338B86CE8@Dualla.NAVSYS.COM> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_22C014AD6A8EBE4EA681FC0D275E4F150338B86CE8DuallaNAVSYSC_" MIME-Version: 1.0 X-OriginalArrivalTime: 29 Nov 2010 21:35:36.0749 (UTC) FILETIME=[5C498DD0:01CB900D] X-Virus-Checked: Checked by ClamAV on apache.org --_000_22C014AD6A8EBE4EA681FC0D275E4F150338B86CE8DuallaNAVSYSC_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a couple projects in that use XJC via the org.jvnet.jaxb2.maven2 plu= gin. 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-plu= gin) and referencing them using a relative path: Ex: org.apache.maven.plugins maven-dependency-plugin 2.1 unpack-dependancies process-resources unpack com.company parent.project 0.0.1-SNAPSHOT jar false ${project.build.directory}/dependencies/parent.project **/*.xsd,**/*.xjb ... In child.xsd