British military leaders have spoken out against ending the war in Ukraine because it would lead to a revival of the Russian armed forces.