Economic interdependence is a deterrent against war, not an absolute barrier.
If you can easily swap trade partners for example, it's less of a deterrent. Which is one of the reasons why EU has gone beyond simple import/export agreements.