But Germany essentially went to war in WWI to defend their allies, who had suffered what was quite arguably an act of war, namely a terrorist attack on their dignitaries on foreign soil, and which the nationalities involved were, according to them, not very cooperative. Now if you argue that is not the same, then the US invasion of Afghanistan is also a US war of aggression.