Hi,
In my pom.xml, I am setting my version to be a SNAPSHOT version:
<version>1.35-SNAPSHOT</version>
when I run the release:prepare, I get the the error shown below.
Any ideas?
Michael McCrann
Provider message:
The cvs command failed.
Command output:
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Diagnosis: Error adding the release-pom.xml:
c:\michaels_projects\transact\release-pom.xml
[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace:
org.apache.maven.plugin.MojoExecutionException: Error adding the
release-pom.xml: c:\michaels_projects\transact\release-
pom.xml
at
org.apache.maven.plugins.release.PrepareReleaseMojo.generateReleasePoms(PrepareReleaseMojo.java:1046)
at
org.apache.maven.plugins.release.PrepareReleaseMojo.executeTask(PrepareReleaseMojo.java:232)
at
org.apache.maven.plugins.release.AbstractReleaseMojo.execute(AbstractReleaseMojo.java:73)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:233)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.scm.ScmException: Error!
at
org.apache.maven.plugins.release.helpers.ScmHelper.checkResult(ScmHelper.java:124)
at
org.apache.maven.plugins.release.helpers.ScmHelper.add(ScmHelper.java:191)
at
org.apache.maven.plugins.release.PrepareReleaseMojo.generateReleasePoms(PrepareReleaseMojo.java:1042)
... 18 more
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 32 seconds
[INFO] Finished at: Thu Oct 13 09:15:57 EST 2005
[INFO] Final Memory: 1M/4M
[INFO]
----------------------------------------------------------------------------
-----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]