> > Todd Thiessen wrote: > >> The first modification of the pom changes the version to > remove the > >> "-SNAPSHOT" and also changes the SCM values to point to the tag > >> location instead of the trunk location. Once done, it > then commits > >> this change to trunk. > > To some extent I think there's a reason for this, which is so > that the files will not appear to have been modified on the > tag, and the tag is a straight copy of some actual SVN > revision, rather than being created out of thin air from a > working copy. (Of course, if you branch from a tag and have > it increment the branch version numbers, it straight-up > modifies the tag and then modifies it back, which bugs me.) > > Something similar is done when branching - version numbers > are updated beforehand, then branched, so that the set of > revisions on the branch doesn't include the version number > change. I guess this is so when you merge over all changes on > the branch to the turnk, you don't get a bunch of spurious > version number changes that you'd have to ignore. > > >> Can anyone else confirm this? This seems pretty dangerous. > > Certainly confirmable. I guess the main danger is really if > someone updates and does a 'mvn deploy' and it blows away > your release version. Keeping your release deployment > credentials close is good practice, so this would be pretty > uncommon in the wild. But it's an issue that maybe bears > rethinking nonetheless.
Yes, unfortunaltley it interferes with any(most?) CI systems - as the CI System has the potential to see the release (on the trunk) and build it. All my snapshots are built and deployed by the CI system, the only way I have found to stop this is to disable the project in the CI server before the release happens - which is a bit labour intensive but better than changing all the versions and scm location by hand. /James ********************************************************************************************************* This e-mail is confidential, the property of NDS Ltd and intended for the addressee only. Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. Messages sent to and from NDS may be monitored. NDS cannot guarantee any message delivery method is secure or error-free. Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission. You should carry out your own virus checks before opening any attachment. Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS. To protect the environment please do not print this e-mail unless necessary. NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00 ********************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]