Do you mean the Invoker plugin?

The ultimate goal is to be able to selectively build only projects that
have changed since the last build. 

One piece of that is that we are trying to automate the version property
of the POM for each branch, based on the most recent Perforce changenum
for that branch. From what I've been able to gather from research and
trying to create a simple plugin to set a property, it seems that
properties cannot be changed once the POM has been validated. Therefore,
it seems that a plugin is useless to set this property. I realize that
the SCM plugin has a Perforce implementation (and by extension, the
Release plugin should be supported), but it seems to have bugs that have
kept us from successfully taking advantage of it.  Therefore, we have
been trying to find a way to pull in the POM version from Perforce some
other way, such as an environment variable. However, since the goal is
to be sensitive to the changes in each branch, we can't just use one
overall version. We need the version to depend on the changenum in that
branch. So the thought was, if the Reactor spawns a new process, we can
just update the value of the variable in the new process. Otherwise,
we'll have to look at setting up a variable for each of the modules.

-----Original Message-----
From: Brian Fox [mailto:[email protected]] 
Sent: Sunday, May 24, 2009 5:51 AM
To: Maven Users List
Subject: Re: Does reactor spawn a subprocess for each submodule?

It runs inside the same process. You can use the invoker to fork a maven
process, but this is not usually done as you describe. Why do you want
to
fork a new process for each module?

On Fri, May 22, 2009 at 6:43 PM, Tracy Hartford <[email protected]>
wrote:

> I am working on a large multi-module project, and I need to know how
the
> reactor works when I invoke a maven goal on the parent POM. I know
that
> Maven adds all the submodule POMs into the Reactor, which analyzes the
> dependencies between them, and determines the build order. I
understand
> that the Reactor then "effectively executes" the goal for each
> submodule. What I need to know is, when the Reactor executes the goal
> for a given submodule, does it spawn a child process to do so, or does
> it execute in the current process? If it execute in the current
process,
> is there a way to force it to spawn a new process first?
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to