Execution project is accessible to later mojo executions
--------------------------------------------------------
Key: MNG-3941
URL: http://jira.codehaus.org/browse/MNG-3941
Project: Maven 2
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 2.1.0-M1, 2.0.9
Reporter: Benjamin Bentmann
Priority: Minor
As MSHADE-44 shows, the execution project created for a mojo execution that
forks the lifecycle is still accessible to later mojo executions althought
these later mojo executions did not request a forked lifecycle. While mojos
should not depend on the execution project unless they fork by themselves, the
core should probably wipe out any mojo-related state bits from the
{{MavenProject}} instance before executing another mojo.
IIRC, the same applies to the project dependencies available to a mojo.
Currently, badly written mojos can still get proper dependency sets if some
other mojo triggered dependency resolution before. For deterministic behavior,
mojos should only see those deps that they requested themselves via
{...@requiresdependencyresolution}}.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira