Funny thing is, fuel can be transported, so that's not needed!
If you want to look at the geopolitics of it, all of the bigger countries do in fact have their own sources of oil and their own refineries.
And if you're going the solar route, you still need the raw materials to build the solar panels (and batteries, and EVs) in the first place. They don't grow on trees.
I'm sure we'll see a transition to electric some day, it is more efficient purely from a physics standpoint. But I'd be shocked to see the military transition before civilian industry.