org.kuali.maven.plugins.externals.ReleaseMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of externals-maven-plugin Show documentation
Show all versions of externals-maven-plugin Show documentation
Tooling for integrating Maven with Subversion externals
/**
* Copyright 2011-2013 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* 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.
*/
package org.kuali.maven.plugins.externals;
import org.apache.maven.plugin.MojoExecutionException;
/**
* Perform a release of a multi-module Maven project that contains svn:externals. The release process creates a separate tag for each module
* defined as an svn:external after trimming SNAPSHOT off the version number. It then increments the version number in the root poms and
* re-appends the SNAPSHOT qualifier before committing the altered poms.
*
* @goal release
*/
public class ReleaseMojo extends AbstractTagMojo {
@Override
public TagStyle getTagStyle() {
return TagStyle.RELEASE;
}
@Override
public void execute() throws MojoExecutionException {
helper.createAndUpdateTags(this);
getLog().info("Release has been successfully tagged.");
getLog().info("Incrementing version numbers for the next development iteration");
helper.incrementVersions(this);
}
}