You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# JavaPackager
2
-
JavaPackager Maven Plugin provides an easy way to package Java applications in native Windows, Mac OS X, or Linux executables.
2
+
JavaPackager is a Maven plugin which provides an easy way to package Java applications in native Windows, Mac OS X, or GNU/Linux executables, and generates installers for them.
3
3
4
4
## How to use the plugin
5
5
@@ -60,7 +60,7 @@ Execute next command in project's root folder:
60
60
mvn package
61
61
```
62
62
63
-
By default, it generates next artifacts in `target ` folder:
63
+
And by default it will generate next artifacts in `target ` folder:
|`mainClass`| Yes |`null`| Full path to your app main class. |
81
-
|`bundleJre`| No |`false`| Embeds a customized JRE with the app. |
82
-
|`customizedJre`| No |`true`| If `true`, a customized JRE will be generated, including only needed modules. Otherwise, all modules will be included. |
83
-
|`jrePath`| No |`""`| Path to JRE folder. If specified, it will bundle this JRE with the app, and won't generate a customized JRE. For Java 8 version or least. |
84
-
|`modules`| No |[]| Uses specified modules to customize the bundled JRE. Don't use `jdeps` to get module dependencies. |
85
80
|`additionalModules`| No |[]| Adds additional modules other than the ones identified by `jdeps` before calling `jlink`. |
86
-
|`administratorRequired`| No |`false`| If `true`, app will run with administrator privileges. |
87
81
|`additionalResources`| No |[]| Additional files and folders to include in the bundled app. |
88
-
|`platform`| No |`auto`| Specifies the target platform, which could be different to current one. Possible values: `auto`, `mac`, `linux`, `windows`. Use `auto` for using current platform as target. |
89
-
|`generateInstaller`| No |`true`| Generates an installer for the app. |
82
+
|`administratorRequired`| No |`false`| If `true`, app will run with administrator privileges. |
83
+
|`bundleJre`| No |`false`| Embeds a customized JRE with the app. |
84
+
|`copyDependencies`| No |`true`| If `true`, all dependencies (JAR files) will be bundled with the app. |
85
+
|`customizedJre`| No |`true`| If `true`, a customized JRE will be generated, including only needed modules. Otherwise, all modules will be included. |
90
86
|`displayName`| No |`${project.name}`| App name to show. |
87
+
|`envPath`| No |`null`| Defines environment variable PATH in GNU/Linux and Mac OS X startup scripts. |
88
+
|`generateInstaller`| No |`true`| Generates an installer for the app. |
91
89
|`iconFile`| No |`null`| Path to the app icon file (PNG, ICO or ICNS). |
90
+
|`jrePath`| No |`""`| Path to JRE folder. If specified, it will bundle this JRE with the app, and won't generate a customized JRE. For Java 8 version or least. |
92
91
|`licenseFile`| No |`${project.licenses[0].url}`| Path to project license file. |
93
-
|`url`| No |`null`| App website URL. |
92
+
|`mainClass`| Yes |`null`| Full path to your app main class. |
93
+
|`modules`| No |[]| Uses specified modules to customize the bundled JRE. Don't use `jdeps` to get module dependencies. |
94
94
|`organizationName`| No |`${project.organization.name}`| Organization name. |
95
95
|`organizationUrl`| No |`${project.organization.url}`| Organization website URL. |
96
96
|`organizationEmail`| No |`null`| Organization email. |
97
-
|`envPath`| No |`null`| Defines environment variable PATH in GNU/Linux and Mac OS X startup scripts. |
97
+
|`platform`| No |`auto`| Specifies the target platform, which could be different to current one. Possible values: `auto`, `mac`, `linux`, `windows`. Use `auto` for using current platform as target. |
98
+
|`runnableJar`| No |`null`| Specifies your own JAR file to be bundled. If it's ommited, the plugin packages your code in a runnable JAR and bundle with the app. |
99
+
|`url`| No |`null`| App website URL. |
100
+
|`vmArgs`| No |[]| Adds VM arguments. |
98
101
99
102
> See [**Older documentation**](#Older documentation) for previous versions properties.
100
103
@@ -119,8 +122,6 @@ Some assets, such as application icons, could be located in `assets` folder orga
0 commit comments