All that you suggest is necessary but new kit in the pipeline gives potential recruits hope that their future career choice will be correct.
While this could help a little, I think the problem is far worse than new equipment would significantly help. As an example the RNZAF has had to hire civilian licenced maintenance engineers to oversee maintenance work on their
new P8's as they have no experienced personal to do the job. Most of the RNZAF's aircraft are new or reasonably young, though few in number.
As I have said before the reduction of the terms and conditions of military personal in 2012 by the Key government, even though the 2011 white paper said that there was a problem starting to emerge in retaining experienced personal was not of the highest intellectual thinking (dumb). Pure bean counter thinking without regard for the outcome.
The navy cannot man all its ships, the army units are understrength, and the air force cannot service it's aircraft because they all lack the supervisors and lower/middle management in the 6 to 16 year experience group.
This has been a problem for more than a decade and should have been sorted long ago, but up until the government started to understand that the world had turned nasty they saw that not having the right people saved money.