The word Shalom is probably the most widely-known Hebrew word, among Jews and also people who aren’t Jewish. Shalom means peace, and because of that Shalom is also the word for greeting someone and saying goodbye. Shalom means not just peace but wellbeing and wholeness, so when we see someone we are expressing our hope that they are well and whole, and we leave we wish them a blessing of peace.
Shalom is even part of the name of our holiest city, Yerushalayim, Jerusalem, the City of Peace. Shalom is central to the Jewish view for humanity and for our holy land.
And at the same time, Judaism is not pacifist. War is sometimes unavoidable and sometimes necessary. One question we can ask is how Judaism views that necessity.
One response is in the midrash about the reunion between Yaakov and Esav. Yaakov returns toward home after 20 years of separation from his brother Esav, who at the time wanted to kill him. So Yaakov is afraid this is still the case, particularly after hearing that Esav has 400 men with him. The Torah says that "Yaakov was very afraid and he was troubled", vayira Yaakov m’od vayeitzer lo (Genesis 32:8).
The midrash picks up on the two descriptions for Yaakov’s fear, and explains it like this: Yaakov was afraid that Esav might kill him, and he was troubled that he might have to kill Esav.
Between this verse and the brothers’ actual reunion, there is the famous story of Yaakov wrestling at night with a being. This being is often called an angel, but in one midrash, the being is described as a representation of Esav and his might. In the course of the fight, Yaakov is given a new name, Yisrael, which has inside it the word sar which means "power" or "rule." And at the end of the fight, in the morning, Yaakov is limping.
These two midrashim suggest a view of war: that being powerful is necessary, and that even justified killing is wounding to one’s soul. War can be necessary for survival, and survival is important not just in itself but in order to continue the covenant the Jewish people are charged with following. Killing in war is never desired, whether the people who die are innocent or enemies. Going to war ought to be sobering, never triumphalist, even when it’s unavoidable or the cause is just. A people who fights will be defined by that fighting, as Yaakov was renamed Yisrael, and they will always have something to heal from, as Yaakov did.
And shalom must remain a goal and a hope, embraced even when shalom between particular nations isn’t likely in the short-term. That is one of the reasons why the essential part of every Jewish service, the Amidah, always concludes with prayers of shalom.