In our POM files we have the scm section where we define the url to our cvs repository, including a variable for the current system user from the environment settings.
<developerConnection>scm:cvs:pserver:${env.CVS_USER}@servercvs01:/path/to/cvs/project:module</developerConnection>
The problem now is, if I execute the maven goal release:prepare the variable will be interpolated with the current user (which is fine generally) but when the execution is over I end up with a POM file where not only the versionString
is updated (which is fine too), but also the ${env.CVS_USER}
variable stays replaced with the current user. If I now want to automatically checkin the changed POM file because of the changed version string, I suddenly checkin the absolute user info too, that doesn't make any sense for other users then.
So my question is, why the variable interpolation in maven doesn't work just on RUNTIME, but lets the POM file variable declarations unchanged, so that the only change would be the versionString
in this usecase!