Gods, who gives a crap about how long Maverick has been in service? It's a MOVIE, they can make up anything they want.
The only realism I expect in the movie is the flight scenes (as they're real, and not CGI). And I intent to enjoy the ****** out of it, and don't give a shit about how realistic Maverick being active duty is or not.