Beijing mobilized naval and air forces in its first major military exercise on all sides of Taiwan since April, state media showed.