You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Be...@innovations.de on 2010/12/20 18:11:44 UTC
How do I get the MavenProject objects of already built modules?
Hi,
when implementing a Mojo (Maven 3), how do I get the MavenProject
objects of the modules that were already built by the current reactor
build?
Regards,
Bernd Vogt
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
AW: How do I get the MavenProject objects of already built modules?
Posted by Be...@innovations.de.
> /** @parameter default-value="${reactorProjects}" */
> Collection<MavenProject> projects;
That's exactly what I was looking for. Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: How do I get the MavenProject objects of already built modules?
Posted by Benjamin Bentmann <be...@udo.edu>.
Brian E. Fox wrote:
> Do you need @aggregator to make sure the reactorProjects is properly populated?
No, at least not just for inspection of the projects and their model.
Neglecting the run-once behavior of @aggregator, it would be required if
their dependencies needed to be resolved or lifecycle forking be done
for all of them.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: How do I get the MavenProject objects of already built modules?
Posted by "Brian E. Fox" <br...@infinity.nu>.
Do you need @aggregator to make sure the reactorProjects is properly populated?
--Brian (mobile)
On Dec 20, 2010, at 12:18 PM, Benjamin Bentmann <be...@udo.edu> wrote:
> Bernd Vogt wrote:
>
>> when implementing a Mojo (Maven 3), how do I get the MavenProject
>> objects of the modules that were already built by the current reactor
>> build?
>
> Sounds either like
>
> /** @parameter default-value="${reactorProjects}" */
> Collection<MavenProject> projects;
>
> or http://jira.codehaus.org/browse/MNG-4943.
>
>
> Benjamin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: How do I get the MavenProject objects of already built modules?
Posted by Benjamin Bentmann <be...@udo.edu>.
Bernd Vogt wrote:
> when implementing a Mojo (Maven 3), how do I get the MavenProject
> objects of the modules that were already built by the current reactor
> build?
Sounds either like
/** @parameter default-value="${reactorProjects}" */
Collection<MavenProject> projects;
or http://jira.codehaus.org/browse/MNG-4943.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org