Taiwan's government says that while it wants peace, it will defend itself if necessary.