Friday, March 10, 2017

How-To write and document a Maven Plugin

"Maven is - at its heart - a plugin execution framework; all work is done by plugins."

This quote is the start of the Maven Plugins documentation. Thus, if you want to customize your Maven build project you should think about using a special plugin. If no plugin for your task is available you have the possibility to write your own.

Tuesday, March 7, 2017

Java 9 - Multi-Release Jar Example

Java 9 offers the possibility to build a JAR file with a format that "allows multiple, Java-release-specific versions of class files to coexist in a single archive" (JEP 238: Multi-Release JAR Files).

Content of my Multi-Release Jar example artifact

I build a sample project to show how Multi-Release Jars can be build with Maven. You can find it here on my GitHub page.