Most people don't like being hurt.
So we only go to war if either:
1. The other side is much weaker
(e.g. America versus a third world nation), or
2. We feel we have nothing to lose
(e.g. 1930s Germany under hyper inflation).
Economics has already ended war for many of us. Rich, comfortable nations no longer fight each other. Ground rent just brings everybody into the rich club.
The same principles apply to ideology, terrorism
and every other kind of conflict.