Off the top of my head I can't think of circumstances that would cause this, but some possibilities:

* if the later stage is in part of a "forked" lifecycle the project may have been altered * if the enforcer rule or another plugin is modifying/cloning the project

Do you have a small reproducible test case?

- Brett

On 13/12/2008, at 2:59 AM, Nord, James wrote:

Hi all,

I'm having an issue with the maven enforcer api.

There seems to be some difference between the project returned by

(MavenProject) helper.evaluate( "${project}"
and
(MavenProject)((MavenSession) helper.evaluate(
"${session}")).getCurrentProject()

More formally my rule gets kick off multiple times during the build and
in the later stages the MavenProject returned by helper.evaluate(
"${project}" ) ends up having no parents even though it is the same
Project (calls to getParent() return null). The project I get from the
session with getCurrentProject() does not have this issue.

Is there supposed to be any differences in these two projects? Is there
any guidlines on why/when I should use one or the other?

Thanks,

/James




*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only. Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please immediately notify the [email protected] and destroy the original message. Messages sent to and from NDS may be monitored. NDS cannot guarantee any message delivery method is secure or error-free. Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission. You should carry out your own virus checks before opening any attachment. Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
**********************************************************************************************************

--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/


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

Reply via email to