Currently, mavenSession.getAllGoalNames() only gives a list of goals provided by plugins; it should include goals defined in the project's maven.xml.
For one thing, this would improve the shell completion files generated by maven-shell-plugin.
Michael