Book Image

Apache Maven Cookbook

Book Image

Apache Maven Cookbook

Overview of this book

Table of Contents (18 chapters)
Apache Maven Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Releasing a Maven project


The ultimate goal of any project is the release. After development is complete and bugs are fixed, it is time to release the project. Different projects are released in different ways. Web projects are released by deploying them to the web server. Other projects may be packaged into executable JARs. Still others may be packaged as executables or installers. If the project is a library or a dependency used in other projects, then it needs to be made available suitably.

As we have seen before, we use the SNAPSHOT version during development. When the project has to be released, this version now needs to be replaced with a concrete version.

One of the most advanced features of Maven is its support to do a project release. Let us explore this.

How to do it...

  1. Open a project for which you want to do a release (project-with-release).

  2. Verify if the SCM details are present in the pom file:

    <scm>
          <developerConnection>scm:git:https://bitbucket.org/maruhgar/apache...