EDISON, N.J. — Four New Jersey police officers have pleaded guilty to scheming to retaliate against an officer from another department because he arrested one of their relatives for drunken driving.

Edison officers Michael Dotro, Victor Aravena, William Gesell and Brian Favretto face criminal probation after pleading guilty Friday as jury selection was underway in their trial. They had to forfeit their jobs and promptly resigned. They won’t be allowed to hold public jobs in the state.

Prosecutors say the four improperly accessed information about a North Brunswick officer in 2012 and spied on him. But prosecutors say no retaliation occurred.

Dotro faces charges in two separates cases, including one in which prosecutors say he set fire to the home of an Edison police captain while he and his relatives were asleep inside.