Pulling maven execution into a dedicated method.