Hmmm. They are not exactly synonymous. 'for years' is generally used to emphasise a great number of years, rather than just to indicate an unspecified number of years.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Supposing you continue to live there in the future, the first will remain true forever; the second will become false after a year.