The human body, psyche, medical advances and new motors, never mind all that, how to make the spaceship ITSELF stand the test of time?
As the title asks, if you were to build a generation ship and solved the many issues with long space travel concerning the human body et al., how do you keep the ship itself functioning over a very long time? For example, 20-year-old cars are already rare as they start deteriorating after heavy use/time, home appliances as well, work machines, you name it, if a machine is a few decades old chances are it's either decommissioned or in maintenance hell. Heck, ISS has gotten pretty crappy and that was only launched 27 years ago and about to be decommissioned.
So, how do we build a spaceship that's still livable for unmodified humans, at least until it leaves the solar system's influence, and, hopefully for the humans aboard, even after the journey through the stars? Because we can't exactly have pit stops on the way, unless we somehow keep island hopping through the Kuiper Belt/Oort cloud..