Maven release

You can use maven release plugin to make your release job much easier. it will automatically test build the project and run all unit test. After that, it will create a tag for you, and then update the current snapshot version to a newer one.

For using the release plugin, you will need to set up the scm info first:

<project>
...
<scm>
    <connection>...</connection>
    <developerConnection>...</developerConnection>
    <url>...</url>
</scm>

The ‘connection’ tag is for read only checkout, and ‘developerConnection’ is with commit permission.

The value of them will look like: ‘scm:svn:http://….’, given you are using SVN/Webdav as your SCM system.

After that, you can use: ‘mvn release:prepare’ for preparing your release. And you can use ‘mvn release:perform’ for doing the release.

Please note that if you don’t have a repository set up, the release:perform will fail. That’s okay is you don’t really need to release it by repository. You can just delete those 2 generated release property file.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Share

Leave a Reply