Skip to content

Commit 85f91d6

Browse files
authored
Document skipNativeBuildForPom for Maven aggregators (#921)
* Document skipNativeBuildForPom Maven option * Remove internal citation from Maven docs
1 parent a261658 commit 85f91d6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/src/docs/asciidoc/maven-plugin.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ The following configuration options are available:
5555
----
5656
<skipNativeBuild>true</skipNativeBuild>
5757
----
58+
`<skipNativeBuildForPom>`::
59+
To skip generation of the native image only for Maven projects with `pom` packaging, use
60+
`<skipNativeBuildForPom>`. This option defaults to `false` for compatibility. It is useful in
61+
multi-module builds where a parent aggregator POM shares the native profile or plugin
62+
configuration with child modules but does not contain the application main class. Enabling this
63+
option prevents native image generation in the aggregator project while still allowing
64+
application modules to build their native images. It does not select the application module
65+
automatically; configure or run the native build in the module that owns the main class. To
66+
enable it, add:
67+
[source,xml, role="multi-language-sample"]
68+
----
69+
<skipNativeBuildForPom>true</skipNativeBuildForPom>
70+
----
5871
`<skipNativeTests>`::
5972
To skip generation and execution of the native image compiled tests, add:
6073
[source,xml, role="multi-language-sample"]

0 commit comments

Comments
 (0)