Current status of jobs for developers is there are way more jobs as there are developers. Nobody knows the future but I expect the only reason this will change is when machine learning is going to replace part of the developers job. Maintenance it jobs and higher level jobs will even then still exist.
If you enjoy doing maintenance there will most probably always be other companies that have software that needs maintenance and pay good money for doing this.
If you want to work in the next new hipster company in the future, than probably you should focus on learning new frameworks, tools and languages. otherwise you are fine. It's always good to learn new tools and frameworks to broaden your vision but so is learning solid standard, code smells, good architecture and design patterns.
If you are afraid of this machine learning (or AI, probably not) taking over your job. Than you should invest in learning more about this so you could in the future have a job maintaining these algorithms.
Simply put: Work in the area you want to work in in the future. If this is maintenance, keep doing maintenance. If you want to code new applications, find a job where you can do this.