44
55``` xml
66<plugin >
7- <groupId >fvarrui.maven </groupId >
7+ <groupId >io.github.fvarrui </groupId >
88 <artifactId >javapackager</artifactId >
99 <version >{latest-plugin-version-here}</version >
1010 <executions >
@@ -31,7 +31,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
3131 <build >
3232 <plugins >
3333 <plugin >
34- <groupId >fvarrui.maven </groupId >
34+ <groupId >io.github.fvarrui </groupId >
3535 <artifactId >javapackager</artifactId >
3636 <version >{latest-plugin-version-here}</version >
3737 <executions >
@@ -53,7 +53,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
5353
5454``` xml
5555<plugin >
56- <groupId >fvarrui.maven </groupId >
56+ <groupId >io.github.fvarrui </groupId >
5757 <artifactId >javapackager</artifactId >
5858 <version >{latest-plugin-version-here}</version >
5959 <executions >
@@ -77,7 +77,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
7777
7878``` xml
7979<plugin >
80- <groupId >fvarrui.maven </groupId >
80+ <groupId >io.github.fvarrui </groupId >
8181 <artifactId >javapackager</artifactId >
8282 <version >{latest-plugin-version-here}</version >
8383 <executions >
@@ -100,7 +100,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
100100
101101``` xml
102102<plugin >
103- <groupId >fvarrui.maven </groupId >
103+ <groupId >io.github.fvarrui </groupId >
104104 <artifactId >javapackager</artifactId >
105105 <version >{latest-plugin-version-here}</version >
106106 <executions >
@@ -123,8 +123,8 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
123123
124124``` xml
125125<plugin >
126- <groupId >fvarrui.maven </groupId >
127- <artifactId >javapackager</artifactId >
126+ <groupId >io.github.fvarrui </groupId >
127+ <artifactId >javapackager</artifactId >
128128 <version >{latest-plugin-version-here}</version >
129129 <executions >
130130 <execution >
@@ -141,4 +141,41 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
141141 </execution >
142142 </executions >
143143</plugin >
144- ```
144+ ```
145+
146+ ## Multiple executions
147+
148+ ``` xml
149+ <plugin >
150+ <groupId >io.github.fvarrui</groupId >
151+ <artifactId >javapackager</artifactId >
152+ <version >{latest-plugin-version-here}</version >
153+ <executions >
154+ <execution >
155+ <phase >package</phase >
156+ <goals >
157+ <goal >package</goal >
158+ </goals >
159+ <configuration >
160+ <name >Sample-with-jre</name >
161+ <mainClass >fvarrui.sample.Main</mainClass >
162+ <bundleJre >true</bundleJre >
163+ </configuration >
164+ </execution >
165+ <execution >
166+ <phase >package</phase >
167+ <goals >
168+ <goal >package</goal >
169+ </goals >
170+ <configuration >
171+ <name >Sample-without-jre</name >
172+ <mainClass >fvarrui.sample.Main</mainClass >
173+ <bundleJre >false</bundleJre >
174+ </configuration >
175+ </execution >
176+ </executions >
177+ </plugin >
178+ ```
179+ Last configuration, e.g. on Windows, will generate next artifacts:
180+ * ` Sample-with-jre_x.y.z.exe ` with a bundled JRE.
181+ * ` Sample-without-jre_x.y.z.exe ` without JRE.
0 commit comments