Hello SPASI, thanks for your reply.
1) jlink: thanks for the example about using the jlink command directly: I'll try this way too.
2) native libs in module-info.java: My module-info.java does not include the native jar's in the requires clauses, as their modules (for instance, org.lwjgl.natives for the lwjgl-3-3-2-natives-linux.jar) are not found both by Eclipse AND by Maven itself; this is part of the output of mvn package if they are included:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/mmg/Documents/projects/Eclipse_workspaces/Treni/treni/src/main/java/module-info.java:[15,42] module not found: org.lwjgl.natives
[ERROR] /home/mmg/Documents/projects/Eclipse_workspaces/Treni/treni/src/main/java/module-info.java:[17,47] module not found: org.lwjgl.glfw.natives
[ERROR] /home/mmg/Documents/projects/Eclipse_workspaces/Treni/treni/src/main/java/module-info.java:[19,49] module not found: org.lwjgl.opengl.natives
[ERROR] /home/mmg/Documents/projects/Eclipse_workspaces/Treni/treni/src/main/java/module-info.java:[21,42] module not found: org.lwjgl.stb.natives
Now, the native libraries are correctly listed in the pom.xml (at least nobody complains about them), are correctly downloaded to the local .m2 repo, recognised by Eclipse in the "Maven dependencies" list, listed by the jlink plug-in, etc... So, everything seems to work, except that it does not! I suspect some basic 'building block' is missing, but I cannot guess which one. This is not the first time I use jlink and the process usually works, but the need for the native libraries seems to block everything.
3) target/modules: Maven by itself does not put anything in it; in my case the moditect plug-in puts there the modularised JAR's, but this is all. Do you use the maven-dependency-plugin to have the dependency JAR's copied there?
Thanks again!