why can't you just call
mvn scm:checkout release:prepare 
As one statement? 
You must have a really active scm-repository or a very long build if you are 
concerned about intermediat commits.
Since you will do a checkout of the latest revision just before you build. 
Or didn't I understand you well?
 
Kay

________________________________

Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: vr 1-12-2006 16:43
Aan: [email protected]
Onderwerp: RE: Release a project



Yeah that's right.  But the problem is, if there are any differences beween the 
version stored on my computer and the one stored in the repository, the whole 
thing fails.  I want the command to perform a checkout from the repository, 
make a clean build and tag that along with the version on the server.

Björn De Bakker

-----Oorspronkelijk bericht-----
Van: Grosskop, Kay [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 1 december 2006 15:34
Aan: Maven Users List
Onderwerp: RE: Release a project

Hi Björn,

As far as I can judge, the maven-release-plugin IS exactly what you need. There 
is even some documentation on it.
http://maven.apache.org/plugins/maven-release-plugin/
http://maven.apache.org/guides/mini/guide-releasing.html

quote from the mini-guide:
-----------------------------
The release:prepare goal will:

1.      Verify that there are no uncommitted changes in the workspace.
2.      Prompt the user for the desired tag, release and development version 
names.
3.      Modify and commit release information into the pom.xml file.
4.      Tag the entire project source tree with the new tag name.

-------------------------------------------

Note that it requires that you don't have snapshot dependencies in your pom. 
The plugin has some minor issues, but it satisfied our needs and works quite 
good.

Kay


________________________________

Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: vr 1-12-2006 14:53

Aan: [email protected]
Onderwerp: Release a project



What I'm trying to do is the following:



I want to checkout the most recent version of my project from Subversion.  When 
that's done, I want to create a build from this version and after that, tag 
those two.  This way, we have a version in Subversion from our project and a 
build, created from that version, both with the same tag.



Is this even possible in Maven2?  What I'm doing now is scm:bootstrap, which 
checks out the most recent version from Subversion, then build the whole thing 
and then tag the whole thing.  Everything from command line.  I don't know if 
this is possible with Maven, all-in-one-command.



I already read something about maven-release-plugin, but it has poor 
documentation and it's not exactly what I'm looking for.



If my explanation isn't clearly enough, please ask for more text.



Sincerely



Björn De Bakker







This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.





This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

---------------------------------------------------------------------
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]

Reply via email to