<project>
...
<build>
<pluginManagement>
<plugins>
...
<plugin>
<groupId>com.github.akman</groupId>
<artifactId>jlink-maven-plugin</artifactId>
<version>0.1.11</version>
<configuration>
<modulepath>
<dependencysets>
<!-- add project dependencies to modulepath -->
<dependencyset>
<!-- add project output (module) to modulepath -->
<includeoutput>true</includeoutput>
<!-- exclude automatic modules -->
<excludeautomatic>true</excludeautomatic>
</dependencyset>
</dependencysets>
</modulepath>
<noheaderfiles>true</noheaderfiles>
<nomanpages>true</nomanpages>
<compress>
<compression>ZIP</compression>
</compress>
<stripdebug>true</stripdebug>
</configuration>
</plugin>
...
</plugins>
</pluginManagement>
...
<plugins>
...
<plugin>
<groupId>com.github.akman</groupId>
<artifactId>jlink-maven-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>jlink</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
</project>