I have a MOJO I would like executed once, and once only after the test phase of the last project in the reactor to run.
Using:
if (!getProject().isExecut
There is a Sonatype blog entry that describes how to do this. The last project to be run will be the root project as it will contain module references to the rest. Thereforec you need a test in your mojo to check if the current project's directory is the same as the directory from where Maven was launched:
boolean result = mavenSession.getExecutionRootDirectory().equalsIgnoreCase(basedir.toString());
In the referenced entry there is a pretty comprehensive example of how to use this in your mojo.