“Our task over the next few generations is to transform the world of independent states in which we live into some sort of genuine international community. If we succeed in creating that community, however quarrelsome, discontented, and full of injustice it probably will be, then we shall effectively have abolished the ancient institution of warfare. Good riddance.” 

― Gwynne Dyer, War: The New Edition

And if we don't, we're doomed. I don't see any way that we will find a way to abolish warfare unless humanity gets a lot smarter and fast.