An EU type agreement will keep peace for some time. Remove all trade barriers between two countries, have a treaty preventing any side to be used militarily by third party, no attacking each other and free movement of all vessels through each other's seas. Maybe few more