Nuclear technology is extremely risky and prohibitively expensive even if we ignore the cost of accidents and waste disposal covered largely by governments because not a single company controlled by sane people would ever build a nuclear power plant otherwise.
That being said it is not at all clear whether there is enough uranium for a couple or even one century, especially given the massive increase in demand that we will see in the next couple of years.
Even if we assume it is cheap and will last for centuries it is still not a long term solution, which is what Germany is aiming for.
Fortunately other nuclear fuels exists, such as Thorium. They are also less dangerous and more plentiful, therefore we should invest in them. You shouldn't equate nuclear technology with the kind of fission reactors that were developed during the cold war with the twin goal of generating energy and supplying material for nuclear bombs.
That being said it is not at all clear whether there is enough uranium for a couple or even one century, especially given the massive increase in demand that we will see in the next couple of years.
Even if we assume it is cheap and will last for centuries it is still not a long term solution, which is what Germany is aiming for.