A retired United States Army colonel will serve two years in federal prison for sending classified war plans to a woman he met online, federal authorities said.