I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install
or whatever), maven will run all the goals for the parent project before proceeding with the children.
I want to be able to define a goal that runs on the parent, but not until all of the children have been processed. Is there a way to do this?
Specifically, what I want to do is run an exec:exec
goal which recurses down the filesystem looking for test result files and copies them to a central location for aggregation by our CI system (cruisecontrol). So, alternative solutions to this problem are also welcome :)
UPDATE: I forgot to mention one requirement: I need the exec goal to run regardless of whether the build is successful or not.