throw an exception when no packages defined for scanning