Skip to content

Tag: Maven (en)

Apache Maven is a software which sets up your Java build environment. it is extremely powerful, but can be complicated at times.

Maven JLink Plugin Version 3.1.0 released

The Apache Maven team is pleased to announce the release of the Apache Maven JLink Plugin, version 3.1.0.

This plugin is used to create a JLink distribution using Maven. It is as easy as creating a jar file, but will instead create a zip file containing a reduced Java Runtime along with a launcher script, as well as the actual application of course. A JLink zip file is therefore platform dependent.

Use SnakeYAML in a modular jlink distribution

Whenever you pull in SnakeYAML (either directly or via Jackson), you will break your modulear builds. The reason: SnakeYAML is a named automatic module. But then, automatic modules cannot be used in jlink images.

But this can be healed. You can rescue your builds using the moditect-maven-plugin. It is a little hard to use, as the documentation is very technical. It also has few examples, and the documentation does not explain when to use which goal, and how to proceed. So, if you want to see a simple example, read on! 🙂