World War 2 was not a defensive war for Germany until pretty late into it.
If German soldiers got to claim any defense for being involved, it would be that refusing military service was punishable by a lengthy military prison sentence at best and execution at worst.