The example demonstrates reduction the size of the distribution for applications in Java 9.
For Windows and macOS:
mvn clean package -P native-deploy
For Linux:
mvn clean package -P native-deploy,tar-gz
<module name>/target/deploy/native/<file name>.exe (Windows)
<module name>/target/deploy/native/<file name>.dmg (macOS)
<module name>/target/<file name>.tar.gz (Linux)
Reducing distribution size in Java 9 (Russian)