Confectionery giant Mars Inc has opened a US$40m chocolate factory in Dubai.