If an increasing amount of money being spent on military, was channeled into humanitarian efforts, then eventually a military would hardly be needed.
The point is to make friends not enemies. Instead of dropping bombs, you could send aid to those suffering from war.
History has proven that the effort to be a world police is counterproductive. In situations where a military is attacking a population without adequate defense, the focus of aid should be in providing shelter or escape to those being attacked, making an effort not to engage the attackers. Most attackers do not have plans for world domination. Even if the situation looks unjust, we cannot make the world a better place by using punishment. We only end up having more enemies.
The motivation for war will always have a root in competition for natural resources. Humanitarian efforts will promote cooperation instead of competition.
An example of exceptional international relations policy is Cuba. They have an education system that provides them an excess of medical doctors, and they are deployed to regions in need.