On Tue, 2002-11-26 at 10:01, Dave Garthwaite wrote:
> I have a lot of projects which all depend on the same version of various jars. In 
>project.xml, I would like to be able to specify the version using a property from a 
>property file instead of having it hard-coded.
> 
> I have tried setting properties in driver.properties and referencing them in 
>project.xml, but this does not work.
> 
> Any suggestions ?

maven.jar.override = true
maven.jar.<dependency-id> = /path/to/your/jar

so for example in ~/build.properties

maven.jar.override = true
maven.jar.commons-beanutils = /opt/java/libs/beanutils.jar

In this case Maven will use the specified beanutils jar for all your
projects. If you specify this in a project.properties file then you can
override the version the project specifies.

> Dave
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to