A Tennessee man who pleaded guilty to possession of a machine gun and possession of marijuana with intent to distribute was sentenced Wednesday to 15 years in prison in a plea deal that saved him from a likely 30-year minimum prison term had he elected to go to trial.