I will be quoting the maven site: http://maven.apache.org/reference/properties.html

........

The properties files in Maven are processed in the following order:

  1. Built-in properties are processed
  2. |${basedir}/project.properties| (|basedir| is replaced by the
     directory where the |project.xml| file in use resides)
  3. |${basedir}/build.properties|
  4. |${user.home}/build.properties|
  5. System properties

........

The last definition takes precedence, so |${user.home}/build.properties| will override anything specified in a project, and properties given on the command line using |-D| will override everything.
........




Gaurav Kushwaha wrote:

Shouldn't build.properties in master project override the properties
specified in the individual project's project.properties ?

Thanks,
Gaurav.

On 6/28/05, Edwin Punzalan <[EMAIL PROTECTED]> wrote:
Try using the -D option in the command line... that will override all
properties in all properties file. ;)


Gaurav Kushwaha wrote:

Hi have a multiproject and multiple sub projects. I have a property
that is defined in each sub project. But occasionally I want to
override it by changing it only in the master project's
project.properties.
So essentially I have "project.version" property in each project's
project.properties file. And I want to override that property in all
the projects just by making that change in the master project's
project.properties file.
Is it possible ? I tried doing it. Wasn't able to.
Will appreciate any help.

Thanks,
Gaurav.

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




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





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

Reply via email to