Unleash Utilities

Common utility classes provided and used by the plugin. These utilities can f.i. be used by external tools, such as CI server integration plugins.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.itemis.maven.plugins
ArtifactId

ArtifactId

unleash-utils
Last Version

Last Version

2.10.0
Release Date

Release Date

Type

Type

jar
Description

Description

Unleash Utilities
Common utility classes provided and used by the plugin. These utilities can f.i. be used by external tools, such as CI server integration plugins.
Project Organization

Project Organization

itemis AG

Download unleash-utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.itemis.maven.plugins/unleash-utils/ -->
<dependency>
    <groupId>com.itemis.maven.plugins</groupId>
    <artifactId>unleash-utils</artifactId>
    <version>2.10.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.itemis.maven.plugins/unleash-utils/
implementation 'com.itemis.maven.plugins:unleash-utils:2.10.0'
// https://jarcasting.com/artifacts/com.itemis.maven.plugins/unleash-utils/
implementation ("com.itemis.maven.plugins:unleash-utils:2.10.0")
'com.itemis.maven.plugins:unleash-utils:jar:2.10.0'
<dependency org="com.itemis.maven.plugins" name="unleash-utils" rev="2.10.0">
  <artifact name="unleash-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.itemis.maven.plugins', module='unleash-utils', version='2.10.0')
)
libraryDependencies += "com.itemis.maven.plugins" % "unleash-utils" % "2.10.0"
[com.itemis.maven.plugins/unleash-utils "2.10.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.guava : guava jar 23.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
com.tngtech.java : junit-dataprovider jar 1.10.3

Project Modules

There are no modules declared in this project.

Unleash Maven Plugin - More Efficient And Reliable Maven Releases

Maven Central

The Unleash Maven Plugin provides functionality to release Maven projects as it is possible with the Maven Release Plugin. While the idea and the core feature (building release artifacts) is the similar, there are many serious differences that make the unleash plugin much more reliable and efficient than the official release plugin. It is furthermore highly extensible and adaptable to your specific requirements when building releases.

No Longer Under Development

I am sorry to announce that this plugin is no longer under active development. Due to lack of time and personal needs, I have decided to finally stop further development.

The Background

This plugin has been developed because we had some serious issues with the default release plugin in a customer project. After an excessive search for alternatives we decided to develop our own plugin and make it open-source as it was pretty clear that this will become a bigger project that can significantly add value to the community. There are quite a few very good approaches for producing Maven release Artifacts and dealing with them but none of them could easily be integrated in the project's requirements as it was necessary and most of the approaches we tried left some critical questions open.

Requirements

  • JDK 1.7 or higher
  • Apache Maven 3.2 or higher

The Advantages At A Glance

Using the Unleash Maven Plugin brings some significant advantages over the standard Maven Release Plugin as there are f.i.:

  1. A much higher fault tolerance
  • The whole process of building the release can be seen as an atomic operation that can (and will) be rolled back in case of an error automatically.
  • The whole process is implemented as a set of processing steps orchestrated by a workflow. Each step that modifies resources (POMs, SCM, local repository) implements an appropriate rollback method that will be triggered automatically. This whole implementation is based on the library Maven CDI Plugin Utils which enables dependency injection, a workflow concept and extensibility for Maven plugins.
  • Even SCM commits are possible during the release of a Maven project using the Unleash Maven Plugin. There are only a few cases that prevent the release from being finished when SCM commits are detected.
  • Installation and deployment of the artifacts into the local and remote repository happen as the very last steps when all other possibly failing tasks are processed successfully.
  • There are a number of checks before starting the release build to fail fast in the case that some release conditions are violated (e.g. there are SNAPSHOT dependencies or the released project has been detected in one of the remote repositories).
  1. Building releases faster
  • The Unleash Maven Plugin uses your local working copy of the project to build the release artifacts rather than checking out a copy from your SCM and building this one again.
  • It performs several checks before starting the actual build to ensure that the release will pass through. This causes the release to fail fast if a condition is not met.
  1. Providing a highly adaptable build process
  • Additionally to configuring how to perform the several steps of the release process through Mojo parameters you can also configure what steps to perform in order to build the release by overriding and adapting the default workflow of the release Mojo. This allows you to adapt the release process to your exact needs and requirements to better fit your working model.
  1. Being extendable by nature
  • Since the Unleash Maven Plugin is built on top of the Maven CDI Plugin Utils library it is extendable by nature. This means that concepts such as dependency injection, processing steps and workflow-based orchestration of the steps enable you to implement your own processing steps or take pre-implemented steps of other projects and add them as dependencies to your plugin configuration. Once these steps are available on classpath you can embed them into the processing workflow to extend or redefine its functionality.
  1. Reusable SCM provider implementations
  • The dependency injection approach and the implementation of the SCM provider registry of the Unleash Maven Plugin allows SCM providers to be implemented, released and delivered as independent units.
  • Simply add the required scm provider to the plugin dependencies to lay it onto the classpath and it will be found.
  • SCM provider implementations can also be used in other contexts besides this plugin and this is already done.

What Is It Built On?

The Unleash Maven Plugin is built on the new library Maven CDI Plugin Utils which provides some concepts that increases the possibilities of implementing Maven plugins enormously. Is gives you f.i. CDI-based dependency injection and a workflow-based processing model and pushes reusability, extendability and customizability to a higher level.

More about the library can be found here: Maven CDI Plugin Utils

CI Server Integration

Releases should be built by Continuous Integration Servers only. This is much safer than building them on a local machine since your personal setup and local repository could influence the release build in an unwanted way.

On any CI server you have the option to create a separate "release job" that sets all necessary optional and calls the unleash goals manually. When you build this job a new release will be built. Although this is possible and the simplest solution it is quite uncomfortable and error prone since you will have to maintain two different build jobs for the same project. To face this problem there is a plugin for the Jenkins CI server which lets you trigger a release build for an existing Maven job. It is able to store plugin settings globally and locally to make release building as easy as clicking a link.

The Jenkins plugin can be found here: Unleash Plugin Simply install it using the Jenkins Plugin manager and you are all set ;)

Versions

Version
2.10.0
2.9.3
2.9.2
2.9.1
2.8.0
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0