Three men have been sentenced to life imprisonment for the murder of an 18-year-old Grade 11 pupil who was stabbed to death outside his school during a robbery.