UPDATE:
The Journal has a great piece on the new scramble for Somalia among regional and global powers:
The maneuvering for territory has drawn a motley crew of actors, including U.A.E. state-owned shipping giant DP World; a Turkish conglomerate owned by the family of President Recep Tayyip Erdogan’s son-in-law; and Navy-SEAL-turned-businessman Erik Prince, who wants to develop a port south of the capital Mogadishu. France and Japan have military bases, and Russian entities are scouting for deals.
Since 2011, a number of regional powers have been in a scramble for political and economic influence in (Southern) Somalia. Many of these foreign engagements have come with serious threats to Somalia’s territorial integrity and the capacity of the Federal Government to effectively influence regional governments.

Source: The Economist (2012 Map)
Kenya has strong relations with Jubaland, and prefers a weak federated Somalia. Ethiopia and the United Arab Emirates (UAE) are keen on working with the breakaway region of Somaliland. Somaliland, of course, is thriving as a free electoral democracy with functional institutions.
Turkey and Qatar are focused on supporting the Federal Government and investing in Mogadishu and its environs. And Qatar’s Gulf rival, the UAE, is interested in working with the semi-autonomous region of Puntland, against the wishes of the Federal Government.
It is fair to say that the conflicting interests and goals of Somalia’s friends are not helping the wider stabilization effort under AMISOM.
So far Turkey is miles ahead of every other regional powers in terms of economic influence in Mogadishu. This reality is causing a lot of angst among Gulf states eager to cut Qatar, an ally of Turkey, to size.
Turkey and Qatar will likely win this race.
Turkey invested in Somalia early (since 2011) and in a diversified fashion:
Turkish money and aid – delivered directly to key stakeholders in the Somali Federal Government – ingratiated Turkey with local power brokers and provided Ankara with access and power in Mogadishu. What soon followed is Turkish control and management of Somalia’s most lucrative assets, the airport and seaport.
Parallel to these were unilateral rebuilding efforts, offers of scholarships, renovations of hospitals, and the hosting of international conferences about Somalia. These have largely contributed positively to Somalia’s development and yielded the international acclaim and diplomatic clout craved by President Recep Tayyip Erdoğan and his coterie.
Pingback: Is Kenya prepared to go to war with Somalia over a disputed maritime territory? « An Africanist Perspective