LIMA — A 17-year-old boy who was given numerous chances to turn his life around in the juvenile justice system pleaded no contest Wednesday to robbery in adult court.Travis W. Cook, of 1624 N. Elizabeth St., will face up to eight years in prison when he is sentenced on June 6. In exchange for the plea, prosecutors amended the charge from aggravated robbery with a gun. The charge of having a gun under a court sanction was dropped, as were all pending cases at juvenile court.Cook, another child and an adult were accused of using a gun to rob a man in October. The trio approached the man in a parking lot in the 200 block of West Northern Avenue and robbed him, a prosecutor said.Cook has an extensive juvenile record locally, and other agencies have tried to rehabilitate him with no success. Prosecutors decided to try him as an adult after exhausting all options in the juvenile system. You can comment on this story at www.limaohio.com.