I think I'm seeing similar behavior, though not within the pom, but for filtered resources.
If my pom looks like this:
A version.properties file in resources-filtered looks like this:
On the command line, mvn clean package -Dbuild.number=10, results in the proper final name
(something.10), and version.properties is changed to buildNumber=10.
However, if I set up a hudson job with maven goals: clean package -
, the final name is correct (something.10) but the
version.properties is incorrect (buildNumber=localdev).