Maine constitution
Article I: declaration of rights
Section 14

No person shall be subject to corporal punishment under military law, except such as are employed in the army or navy, or in the militia when in actual service in time of war or public danger.