Create a new job of type 'Maven project'.
Enter a job name, any source url (we use subversion), and set a maven goal in the 'Build' step. e.g. 'clean package'. Click save.
Open the configure page of the job and you'll see that you're maven goals aren't saved at all. Try modifying it and saving again.
2) For an existing job that was migrated from jenkins 1.x to 2.x, the POST data sent from the jenkins server does not contain the new parameters.
In the above, I tried to change the existing goal from 'clean package cobertura:cobertura -U -P buildAll -DskipTests' to 'clean compile cobertura:cobertura -U -P buildAll -DskipTests'
I upgraded our instance from jenkins 1.x to 2.x and noticed that we're unable to modify any of the maven goals for our jobs. I'm in the process of changing all our jobs to use a Jenkinsfile, but it would be nice if this core functionality would work in the meantime.
I attached a config.xml for a simple job that shows this issue.