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'?

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.

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.

Regards,

--mike


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

Reply via email to