Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
smart-release:cleanup Cleans up temporary release files from the project directory:
  • Revert changed poms.
  • Remove info files for modules to build and changed files.
smart-release:help Display help information on smart-release-plugin.
Call mvn smart-release:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
smart-release:next Logs the versions of the modules that the releaser will release on the next release. Does not run the build nor tag the repo.
smart-release:prepare Prepares the project release. This mojo will:
  • Check if the repository is clean.
  • Check which modules need to be released. This is accomplished by comparing the git history to the version information in .release-info.json
  • The corresponding poms are updated and the list of modules to build is stored in modules-to-build.txt
  • All files that should be cleaned up/reverted later are stored in files-to-revert.txt
  • The cleanup-mojo should later be used to revert these files.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.0.1
JDK 1.8
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.hilling.maven.release</groupId>
          <artifactId>smart-release-plugin</artifactId>
          <version>4.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.hilling.maven.release</groupId>
        <artifactId>smart-release-plugin</artifactId>
        <version>4.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"