Each force of the militia of the state in active military service has court-martial jurisdiction over all members of the militia. The exercise of jurisdiction by one force over personnel of another force must be in accordance with the code of military justice.