the planning for operation barbarossa took several years prior to may 1941 ; the clandestine preparations and the military operation itself lasted almost a year , from the winter of 1940 , through the spring of 1941 .