native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

Documentation mentions systemPropertyVariables but only systemProperties seems to work

Open wirthi opened this issue 1 year ago • 0 comments

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)

wirthi avatar Jan 08 '25 17:01 wirthi