Whether it is always sinful to wage war?

Objections

Objection 1 : It would seem that it is always sinful to wage war. Because punishment is not inflicted except for sin. Now those who wage war are threatened by Our Lord with punishment, according to Mt. 26:52: "All that take the sword shall perish with the sword." Therefore all wars are unlawful.
Objection 2 : Further, whatever is contrary to a Divine precept is a sin. But war is contrary to a Divine precept, for it is written (Mt. 5:39): "But I say to you not to resist evil"; and (Rm. 12:19): "Not revenging yourselves, my dearly beloved, but give place unto wrath." Therefore war is always sinful.
Objection 3 : Further, nothing, except sin, is contrary to an act of virtue. But war is contrary to peace. Therefore war is always a sin.
Objection 4 : Further, the exercise of a lawful thing is itself lawful, as is evident in scientific exercises. But warlike exercises which take place in tournaments are forbidden by the Church, since those who are slain in these trials are deprived of ecclesiastical burial. Therefore it seems that war is a sin in itself.