A predator has been jailed for more than 17 years after his history of sexual offending was uncovered by officers.