continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Gruber <>
Subject Re: getting relative paths maven + continuum
Date Tue, 07 Aug 2007 18:46:29 GMT
What I've done before is actually created a jar project that contains  
the base schema and only contains the base schema, and make it a  
provided dependency for the other projects.  Then I use the maven  
dependency plugin to grab that .jar, pull it into a temporary folder  
during the build of the dependent project, and either with ant (or a  
little unzip mojo I made) pull the xml file out and put it where it  
needs to be for the local build.  This supports the notion of an  
artifact a little better than relying on file system locations, and  
it also means that you can version that file separately. (if that's  
relevant to you).

In general, I try to take any shared resource or group of resources,  
and pull it into its own project so it can be a first-class maven  


On Aug 7, 2007, at 2:17 PM, brad hadfield wrote:

> Thanks again for all your help,
>  just to clarify, the file is not found in a parent project but in  
> a sibling project.  We have a situation where a number of Web  
> applications have an XML schema file that extends objects found a  
> base schema file. The base schema file is part of the base  
> project.  At the time that the JAXB plug-in is called
> both files must be in the same directory.
> I'll find a solution and check the Maven users list if required.
> Brad
> -----Original Message-----
> From: Christian Gruber []
> Sent: August 7, 2007 1:01 PM
> To:
> Subject: Re: getting relative paths maven + continuum
> Good point, though it's not entirely true, since if you're using  
> maven and always building with the full tree checked-out into a  
> comprehensive workspace, this will work.  It's only because  
> continuum pulls things out sub-project (maven project) at-a-time  
> that this becomes unworkable.
> But the solution is more of a maven-users list thing, true.
> Christian.
> On Aug 7, 2007, at 12:57 PM, Wayne Fay wrote:
>> You may want to take this over to the Maven Users list as it is  
>> really
>> a Maven issue, not Continuum, and I believe more people are  
>> subscribed
>> to M-U than C-U.
> christian gruber + + mob 410.900.0796 + mob2
> 416.998.6023
> process coach and architect + ISRÁFÍL CONSULTING SERVICES

christian gruber + + mob 410.900.0796 + mob2  
process coach and architect + ISRÁFÍL CONSULTING SERVICES

View raw message