The defence ministry said the factories would support up to 7,000 UK-built long-range weapons.