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
The best solution is relying on a lifecycle extension by extending your class from org.apache.maven.AbstractMavenLifecycleParticipant
(see also https://maven.apache.org/examples/maven-3-lifecycle-extensions.html) which got a method afterSessionEnd
added with https://issues.apache.org/jira/browse/MNG-5640 (fixed in Maven 3.2.2).