You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by __matthewHawthorne <ma...@apache.org> on 2004/01/09 23:49:12 UTC

using jar overrides with multiproject: a ${basedir} battle

I use the jar override feature for libraries that aren't on ibiblio.org. 
  I check these jars into our SCM system so that the other developers 
can easily get them.

This works great when building individual projects, but when attempting 
to run multiproject:site the jars aren't found due to a ${basedir} 
issue.  The subproject looks for the jars in ../lib/ejb.jar, but when 
running from the parent directory that path doesn't exist.

I've tried putting ${basedir}/../lib/ejb.jar into the 
project.properties, but that doesn't work either.  I've tried putting a 
project.properties in the "trunk" directory with 
maven.jar.ejb=lib/ejb.jar -- but that also doesn't work.


Here's a sketch of my layout:

trunk/

   lib/
     ejb.jar

   server/
     project.xml

     project.properties {
       maven.jar.override=on
       maven.jar.ejb=../lib/ejb.jar
     }


Does anyone have any ideas how I can make jar overrides work with 
multiproject?

Thanks for any help!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org