Having a caster use magic to allow your melee focused hero to quickly or immediately close the gap and go to town amongst enemy archers will do the trick.

If you plan on only using melee you will just need to do your best to scout out terrain and position effectively before the fighting starts.