The uniformed military is the most dovish actor in our foreign policy process. They oppose the use of force pretty much every time it is debated.
They also will want to stay until the war is won, once engaged. It is the role of the political leaders to make the call to tend wars when they no longer make sense, because the generals never will.
This is the fault of Bush, Obama and Trump. Mostly Obama, in my view.