You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Charles Chan <ch...@yahoo.com> on 2003/06/03 20:43:04 UTC

Reactor and Properties

Apparently, Maven allows only one definition of a
property in reactor.

Consider the following scenario:

Project A
project.properties
==================
conf.dir=/A/conf

Project B
project.properties
==================
No definition of conf.dir

My Plugin
plugin.jelly
============
<goal name="testProperty">
  <echo>conf.dir=${conf.dir}</echo>
</goal>

plugin.properties
=================
(default conf.dir)
conf.dir=${maven.src.dir}/conf

If you have a reactor that executes both A and B's
testProperty goal, A's conf.dir property will be used
when running B's goal.

This is unexpected because when we execute B by
itself, it uses the default conf.dir property defined
in the Plugin.

Do we have some workaround (other than defining
conf.dir in B)?

Charles


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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