Hi, I posted earlier on today about problems using release:prepare. I get some CVS error.
I have continued trying to run it and have got some better output: The cvs command failed. Command output: -f add: release-pom.xml added independently by second party I think it might be to do with my SCM/CVS url. Is there are simple m2 SCM command I can run to check that the URL is correct? Thanks Michael McCrann -----Original Message----- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 October 2005 7:22 PM To: Maven Users List Subject: RE: [m2] Plugin release:prepare gives exception: 'isn't a snapshot' Hi Michael, There is some doco here : http://maven.apache.org/maven2/plugins/maven-release-plugin/ The Release plugin can do exactly what you need. However, the convention for a trunk version is x.y.z-SNAPSHOT. So your scenario would rather be : * your trunk version is 1.35-SNAPSHOT * you call m2 release:prepare and specify tag name rel_1_35, which results in : * - rel_1_35 tag is created with version 1.35 * - trunk version is changed to 1.36-SNAPSHOT * you call m2 release:perform, which deploys version 1.35 from the tag HTH, Yann --- Michael McCrann <[EMAIL PROTECTED]> a écrit : > I haven't been able to find the doco for release plugin. > > Please could someone tell me, based on the scenario outlined below, if this > how the release plugin works. > > NOTE: When I run release:prepare I get an 'isn't a snapshot' Exception. > > Release scenario > ------------------------- > > I have a project that is ready for release. I have checked all the source > code into CVS. Now, I want to run an M2 command that will: > > - increment the version number in pom.xml (ie if my version 1.34, I now want > it to be 1.35). > - CVS tag the this version of the code with something like: rel_1_35. > - build the artifact and deploy it to a remote repository as > <artifact>-1.35.<type> > > > > Regards > > Michael McCrann > > > > > NOTICE > This e-mail and any attachments are confidential and may contain copyright > material of Macquarie Bank or third parties. If you are not the intended > recipient of this email you should not read, print, re-transmit, store or act > in reliance on this e-mail or any attachments, and should destroy all copies > of them. Macquarie Bank does not guarantee the integrity of any emails or any > attached files. The views or opinions expressed are the author's own and may > not reflect the views or opinions of Macquarie Bank. > > ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]