villages and towns developed, and small kingdoms began to flourish by the first century ce. indonesia's sea-lane position helped with management of international trade, where trade with both indian kingdoms and china already occured for several centuries bce. therefore, trade has since fundamentally shaped indonesian history.