Maven deploy ignores project version set by maven-versions plugin
===

I have a Maven project "core". In the project's pom.xml, the version is 0.1. 
I use a parameterized build in Jenkins and set a text parameter myNewVersion=3.1.
I also set the following maven goals:

    versions:set -DnewVersion=${myNewVersion} versions:commit deploy

When the being built, maven updates the version in the pom.xml correctly to "3.1". However the maven deploy task deploys my project as "core-0.1", the version being still 0.1. The pom file included in the corresponding 0.1 dir in my Nexus states the version number "3.1".

What can I do to force the maven deploy task to use the correct version set by the maven versions plugin?

Thank you very much for your help.