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: docs/src/docs/asciidoc/end-to-end-maven-guide.adoc
+49-49Lines changed: 49 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,54 +103,6 @@ This command will compile your application and create a native executable in the
103
103
You can have multiple profiles, which is very convenient if you want to produce different versions of your native images for your application (optimized, static, and others).
104
104
Continue to advanced use cases to learn more.
105
105
106
-
[[advanced-use-cases]]
107
-
== Advanced Use Cases: How to
108
-
109
-
For advanced use cases, this guide provides instructions for configuring the build process, running tests on native code, gathering execution profiles, troubleshooting missing configuration, and enabling diagnostic tools to analyze native images.
110
-
111
-
[[configure-image-build]]
112
-
=== Configure Native Image Build
113
-
114
-
The plugin supports passing options directly to Native Image inside the `<configuration>` block.
115
-
Using `<buildArg>`, you can pass any Native Image build option listed on https://www.graalvm.org/reference-manual/native-image/overview/Options/[this page].
116
-
117
-
The plugin also provides special properties to configure the build:
118
-
119
-
- `<environment>` - Sets the environment options
120
-
- `<imageName>` - Specifies of the name for the native executable file. If a custom name is not supplied, the artifact ID of the project will be used by default (defaults to the project name).
121
-
- `<jvmArgs>` - Passes the given argument directly to the JVM running the `native-image` tool
122
-
- `<quickBuild>` - Enables quick build mode
123
-
- `<verbose>` - Enables the verbose output
124
-
- and many more https://graalvm.github.io/native-build-tools/latest/maven-plugin.html#configuration-options[listed here].
As an alternative, you can pass additional build options via the `NATIVE_IMAGE_OPTIONS` environment variable, on the command line.
149
-
This works similarly to `JAVA_TOOL_OPTIONS`, where the value of the environment variable is prefixed to the options supplied to `native-image`.
150
-
====
151
-
152
-
Learn more about Native Image build configuration https://www.graalvm.org/reference-manual/native-image/overview/BuildConfiguration/[on the website].
153
-
154
106
[[run-junit-tests]]
155
107
=== Run Junit Tests
156
108
@@ -232,6 +184,54 @@ Alternatively, set `<skipNativeTests>` to `true` in the plugin configuration:
232
184
233
185
This way you configure your Maven profile to skip generation and execution of tests as native code.
234
186
187
+
[[advanced-use-cases]]
188
+
== Advanced Use Cases: How to
189
+
190
+
For advanced use cases, this guide provides instructions for configuring the build process, running tests on native code, gathering execution profiles, troubleshooting missing configuration, and enabling diagnostic tools to analyze native images.
191
+
192
+
[[configure-image-build]]
193
+
=== Configure Native Image Build
194
+
195
+
The plugin supports passing options directly to Native Image inside the `<configuration>` block.
196
+
Using `<buildArg>`, you can pass any Native Image build option listed on https://www.graalvm.org/reference-manual/native-image/overview/Options/[this page].
197
+
198
+
The plugin also provides special properties to configure the build:
199
+
200
+
- `<environment>` - Sets the environment options
201
+
- `<imageName>` - Specifies of the name for the native executable file. If a custom name is not supplied, the artifact ID of the project will be used by default (defaults to the project name).
202
+
- `<jvmArgs>` - Passes the given argument directly to the JVM running the `native-image` tool
203
+
- `<quickBuild>` - Enables quick build mode
204
+
- `<verbose>` - Enables the verbose output
205
+
- and many more https://graalvm.github.io/native-build-tools/latest/maven-plugin.html#configuration-options[listed here].
0 commit comments