------ Perform a Release ------ Carlos Sanchez Brett Porter John Tolentino ------ 2011-09-23 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. Perform a Release Performing a release runs the following release phases: * Checkout from an SCM URL with optional tag * Run the predefined Maven goals to release the project (by default, <<>>) [] To perform a release, execute this command: ------- mvn release:perform ------- This relies on <<>> being present from a previous release preparation. If this is not the case, you need to give the goal the URL and an optional tag to perform the release from. For example: ------- mvn release:perform -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin-2.0 ------- <<>> will fork a new Maven instance to build the checked-out project. This new Maven instance will use the same system configuration and Maven profiles used by the one running the <<>> goal. It is possible to force some profiles to get enabled during release (for example to enable time-consuming tasks that are only relevant at release-time) by setting a comma separated list of profiles names in the <<>> parameter. The goals and profiles required to release the project can then be configured in the POM: ------- maven-release-plugin ${project.version} release deploy assembly:single ------- After the release is complete, the <<>> and other release files will be removed from the checkout.