EffectivePomMojo is the goal of the aggregator. This means that it is called only for the module for which you run it. But you are right that you must also reset all subprojects. The reason this does not happen in your case is related to this line:
if ( projects.get( 0 ).equals( project ) && projects.size() > 1 )
In your case, the last most recent project on the chart (because there are no dependencies on it from any other module). If you add it as a parent for project0 (and only for this module), then it will put your root pom in the 1st position on the graph, and everything will work as you expect.
I can not justify this behavior. Therefore, if you raise a problem in bugtracker, everyone will be helpful :) Please check with us if / when you get an answer.
PS: such issues are easy to solve if you know how to debug Maven plugins. To do this, you can use mvnDebug instead of mvn , and then open the source code of the plugin and connect to a debugging session.
source share