File tree Expand file tree Collapse file tree 4 files changed +55
-5
lines changed
examples/quickstarts/helidon-quickstart-se Expand file tree Collapse file tree 4 files changed +55
-5
lines changed Original file line number Diff line number Diff line change 77
77
<goals >
78
78
<goal >generateResourceConfig</goal >
79
79
</goals >
80
- <phase >package</phase >
81
80
</execution >
82
81
<execution >
83
82
<id >build-native-image</id >
84
83
<goals >
85
84
<goal >compile</goal >
86
85
</goals >
87
- <phase >package</phase >
88
86
</execution >
89
87
</executions >
90
88
</plugin >
Original file line number Diff line number Diff line change 184
184
<executions >
185
185
<execution >
186
186
<id >resource-config</id >
187
+ <phase >package</phase >
187
188
<configuration >
188
189
<!-- generate records for all module's resources -->
189
190
<isDetectionEnabled >true</isDetectionEnabled >
190
191
</configuration >
191
192
</execution >
192
193
<execution >
193
194
<id >build-native-image</id >
195
+ <phase >package</phase >
194
196
<configuration >
195
197
<!-- generate an argument file for native image - great for troubleshooting -->
196
198
<useArgFile >true</useArgFile >
214
216
</pluginManagement >
215
217
</build >
216
218
<profiles >
219
+ <profile >
220
+ <id >native-image-skip</id >
221
+ <activation >
222
+ <property >
223
+ <name >native.image.skip</name >
224
+ </property >
225
+ </activation >
226
+ <build >
227
+ <plugins >
228
+ <plugin >
229
+ <groupId >org.graalvm.buildtools</groupId >
230
+ <artifactId >native-maven-plugin</artifactId >
231
+ <executions >
232
+ <execution >
233
+ <id >resource-config</id >
234
+ <phase >none</phase >
235
+ </execution >
236
+ <execution >
237
+ <id >build-native-image</id >
238
+ <phase >none</phase >
239
+ </execution >
240
+ </executions >
241
+ </plugin >
242
+ </plugins >
243
+ </build >
244
+ </profile >
245
+ <profile >
246
+ <id >native-image-static</id >
247
+ <activation >
248
+ <property >
249
+ <name >native.image.buildStatic</name >
250
+ </property >
251
+ </activation >
252
+ <build >
253
+ <plugins >
254
+ <plugin >
255
+ <groupId >org.graalvm.buildtools</groupId >
256
+ <artifactId >native-maven-plugin</artifactId >
257
+ <executions >
258
+ <execution >
259
+ <id >build-native-image</id >
260
+ <configuration >
261
+ <buildArgs combine.children=" append" >
262
+ <arg >--static</arg >
263
+ </buildArgs >
264
+ </configuration >
265
+ </execution >
266
+ </executions >
267
+ </plugin >
268
+ </plugins >
269
+ </build >
270
+ </profile >
217
271
<profile >
218
272
<id >helidon-cli</id >
219
273
<activation >
Original file line number Diff line number Diff line change 66
66
<goals >
67
67
<goal >generateResourceConfig</goal >
68
68
</goals >
69
- <phase >package</phase >
70
69
</execution >
71
70
<execution >
72
71
<id >build-native-image</id >
73
72
<goals >
74
73
<goal >compile</goal >
75
74
</goals >
76
- <phase >package</phase >
77
75
</execution >
78
76
</executions >
79
77
</plugin >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ WORKDIR /helidon
33
33
# Incremental docker builds will always resume after that, unless you update
34
34
# the pom
35
35
ADD pom.xml .
36
- RUN mvn clean package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipselink.weave.skip
36
+ RUN mvn package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipselink.weave.skip
37
37
38
38
# Do the Maven build!
39
39
# Incremental docker builds will resume here when you change sources
You can’t perform that action at this time.
0 commit comments