Belt drivetrains (e.g. Gates Carbon Drive) + internally-geared hubs (e.g. Shimano Alfine) have basically solved that issue. They cost a bit more than chain-derailleur drivetrains but not significantly more.
There's also an efficiency loss, but for me the near elimination of maintenance costs and labor was worth it.
In over ten years of riding in all conditions including heavy snow with sand and salt, I have never done any maintenance on my belt drive system. I'm on my second belt.