Skip to content

Commit c6ff0a2

Browse files
authored
Merge pull request #808 from jormundur00/jormundur00/gh-807
Fix wrong property name in the maven plugin documentation
2 parents ae4b8eb + aafd2e6 commit c6ff0a2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/src/docs/asciidoc/end-to-end-maven-guide.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Using `<buildArg>`, you can pass any Native Image build option listed on https:/
197197

198198
The plugin also provides special properties to configure the build:
199199

200-
- `<environment>` - Sets the environment options
200+
- `<environmentVariables>` - Sets the environment options
201201
- `<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).
202202
- `<jvmArgs>` - Passes the given argument directly to the JVM running the `native-image` tool
203203
- `<quickBuild>` - Enables quick build mode
@@ -214,10 +214,10 @@ Here is an example of additional options usage:
214214
<buildArgs>
215215
<buildArg>-O3</buildArg> <!-- enables additional compiler optimizations -->
216216
</buildArgs>
217-
<environment>
217+
<environmentVariables>
218218
<variable1>value1</variable1>
219219
<variable2>value2</variable2>
220-
</environment>
220+
</environmentVariables>
221221
<jvmArgs>
222222
<arg>your-argument</arg>
223223
</jvmArgs>
@@ -510,4 +510,4 @@ You will find the output of these tools among the generated artifacts after runn
510510

511511
=== Learn more
512512

513-
To continue learning, refer to the <<maven-plugin.adoc#,Maven plugin documentation>>.
513+
To continue learning, refer to the <<maven-plugin.adoc#,Maven plugin documentation>>.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ The following configuration options are available:
115115
</entry>
116116
</excludeConfig>
117117
----
118-
`<environment>`::
118+
`<environmentVariables>`::
119119
To set environment options for a native image build, use:
120120
[source,xml, role="multi-language-sample"]
121121
----
122-
<environment>
122+
<environmentVariables>
123123
<variable>value</variable>
124-
</environment>
124+
</environmentVariables>
125125
----
126126
`<systemPropertyVariables>`::
127127
To specify system properties used for a native image build, use:

0 commit comments

Comments
 (0)