The man accused of driving to a University of Maryland student’s off-campus house as part of a botched robbery attempt last year that left the student dead was sentenced to 15 years in prison Friday, authorities said.

Stephan Weaver, 23, had pleaded guilty to attempted robbery with a dangerous weapon, conspiracy to commit robbery and using a handgun in a crime of violence and agreed to a sentence of 15 years in prison for his role in the Jan. 11, 2011, slaying of 22-year-old Justin DeSha-Overcash, authorities said.

Weaver, authorities have said, drove another man to DeSha-Overcash’s off-campus house in College Park because the two had heard DeSha-Overcash had money and drugs and thought he would be a good target to rob. But when the other man, Deandre R. Williams, confronted DeSha-Overcash, the University of Maryland student resisted, and Williams fatally shot him, authorities have said.

Williams was convicted last month of first-degree murder and other related counts and is scheduled to be sentenced in April, prosecutors said.