native-build-tools
native-build-tools copied to clipboard
Documentation mentions systemPropertyVariables but only systemProperties seems to work
added native-maven-plugin system properties configuration to pom as described in https://graalvm.github.io/native-build-tools/latest/maven-plugin.html
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
...
<configuration>
<fallback>false</fallback>
<systemPropertyVariables>
<propertyName>value</propertyName>
</systemPropertyVariables>
...
but the expected system property -DpropertyName=value was not added to the generated cli command
turned out that it works when <systemProperties> is used instead of <systemPropertyVariables>
<configuration>
<fallback>false</fallback>
<systemProperties>
<propertyName>value</propertyName>
</systemProperties>
...
(reported to GraalVM as GR-60691 and copied here)