Hi Simon,

Simon Kitching wrote on Monday, April 10, 2006 12:23 PM:

> On Mon, 2006-04-10 at 12:17 +0200, 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.
> 
> I've seen in the documentation that you can specify versions like
>  this: <version>[2.2]</version>
> 
> I believe this explicitly locks the dependency at *exactly* that
> version. Presumably this works for plugin versions too.
> 
> And it should make things work faster too, as Maven has no
> need to check
> remote repositories for newer versions if an exact version is
> specified and is already available (well, I'm guessing it works like
> that). 

This would imply, that I know the version of all plugins used (directly or 
indirectly). And I would have to generate this list somehow with every release 
and put it somewhere into my POM.

- Jörg

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

Reply via email to