Three major Japanese shipbuilders are forming an alliance on commercial vessels and ocean engineering to survive competition with South Korean shipyards.