I understand that Maven has a number of phases that run in the order they are defined for a given lifecycle, and that you can attach goals to a phase.
What happens when you attach a number of goals to a phase, how does Maven determine what order to run the goals in?