Nine men who acted as engineers and dug up roads to abstract energy for cannabis farms have been jailed for more than 28 years.