maven-jar-plugin 3.1. 2+ ( , ):
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<archive>
<manifest>
<mainClass>[main class here]</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
:
3.1.2, JAR module-info.class, (module-info.class) [...]. .
, , Manifest , module-info.