On Mon, 2002-10-07 at 10:23, Michael McKibben wrote:
> 
> Is it possible to have the Maven projects executed by the reactor inherit
> the parent context so that top-level build properties and variables are
> available to sub projects? Perhaps this could be enabled/disabled with a
> boolean attribute such as 'inherit'?

Not just for the reactor but for project extension in general the child
project(s) should have access to all the resources the parent has. The
POM, properties files, the maven.xml file. This isn't a reactor specific
thing.

Now apart from project <extension> we can also have a reactor.properties
that can be shared by project built in a reactor that aren't related.
You see what I'm talking about? They are two separate things: how
project extension works and how the reactor works. Though in many cases
the reactor builds projects that are related. Nonetheless they are two
separate things.
 
> It is a real pain to port my current ant builds over to maven without this
> feature. E.g. I have to dynamically create a jelly script containing the
> current vars, then copy to the subproject dir, then eval the generated
> jelly script in my sub project!! This workaround doesn't work perfectly
> since this happens after project.xml evaluation and any properties
> referenced in the project.xml do not get expanded.

Yup, this is a known problem. One I've said I would fix for a while but
haven't got around to it. If you come into the IRC chat room we can
discuss how it might work if you want to tackle it. I've made several
attempts that I haven't finished.

> I could submit a patch if this sounds like a good idea. It seems simple
> enough... add a constructor to Maven() to take a parent Maven instance,
> modify Maven.initializeJellyContext to check for a parent and tweak the
> ReactorTag to pass in the parent when creating a new Maven instance.

The project inheritance needs to be dealt with apart from resources that
might be shared by unrelated projects running in the reactor.

> Regards,
> 
> --mike
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
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