If you are a Maine resident on active duty and you are stationed outside Maine, the military pay you earn there is exempt from Maine income tax.
There is nothing to apply for. Exclude the qualifying military pay from the income you report on your Maine return.
Your orders showing the duty station outside Maine, and your Leave and Earnings Statements or Form W-2 for the pay.