4
4
5
5
``` xml
6
6
<plugin >
7
- <groupId >fvarrui.maven </groupId >
7
+ <groupId >io.github.fvarrui </groupId >
8
8
<artifactId >javapackager</artifactId >
9
9
<version >{latest-plugin-version-here}</version >
10
10
<executions >
@@ -31,7 +31,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
31
31
<build >
32
32
<plugins >
33
33
<plugin >
34
- <groupId >fvarrui.maven </groupId >
34
+ <groupId >io.github.fvarrui </groupId >
35
35
<artifactId >javapackager</artifactId >
36
36
<version >{latest-plugin-version-here}</version >
37
37
<executions >
@@ -53,7 +53,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
53
53
54
54
``` xml
55
55
<plugin >
56
- <groupId >fvarrui.maven </groupId >
56
+ <groupId >io.github.fvarrui </groupId >
57
57
<artifactId >javapackager</artifactId >
58
58
<version >{latest-plugin-version-here}</version >
59
59
<executions >
@@ -77,7 +77,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
77
77
78
78
``` xml
79
79
<plugin >
80
- <groupId >fvarrui.maven </groupId >
80
+ <groupId >io.github.fvarrui </groupId >
81
81
<artifactId >javapackager</artifactId >
82
82
<version >{latest-plugin-version-here}</version >
83
83
<executions >
@@ -100,7 +100,7 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
100
100
101
101
``` xml
102
102
<plugin >
103
- <groupId >fvarrui.maven </groupId >
103
+ <groupId >io.github.fvarrui </groupId >
104
104
<artifactId >javapackager</artifactId >
105
105
<version >{latest-plugin-version-here}</version >
106
106
<executions >
@@ -123,8 +123,8 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
123
123
124
124
``` xml
125
125
<plugin >
126
- <groupId >fvarrui.maven </groupId >
127
- <artifactId >javapackager</artifactId >
126
+ <groupId >io.github.fvarrui </groupId >
127
+ <artifactId >javapackager</artifactId >
128
128
<version >{latest-plugin-version-here}</version >
129
129
<executions >
130
130
<execution >
@@ -141,4 +141,41 @@ Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you
141
141
</execution >
142
142
</executions >
143
143
</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