Lock down the versions of your plugins with <build><pluginManagement>, either:
- manually
- by using the release plugin (warning: currently that rewrites all your pom's and removed comments, schema declarations, reorders dependencies, etc)

With kind regards,
Geoffrey De Smet


Jörg Schaible wrote:
Hello folks,

what is the best way to ensure reproducible releases in M2? By default Maven 
will update its plugins and dependencies from time to time - which is fine as 
long as I work on the trunk. But when I release an artifact, I must freeze the 
current set of plugins/versions for this release - how can I achieve that?

Otherwise M2 might just break the reproducibility of such a release - as it happened for me today 
with the new surefire plugin: forkMode "perTest" was renamed in the latest release to 
"pertest". Any release done with the old version is not longer reproducible! The build is 
broken, because the new version of the plugin fails with an unknown fork mode.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to