mojohaus / exec-maven-plugin

Exec Maven Plugin
https://www.mojohaus.org/exec-maven-plugin/
Apache License 2.0
163 stars 96 forks source link

setting MAVEN_OPTS in environment variables does not work #398

Open siddhsql opened 7 months ago

siddhsql commented 7 months ago

per the documentation:

Any VM specific option that you want to pass to the executed class must be passed to the Maven VM using the MAVEN_OPTS environment variable.

so I did just that:

    <configuration>
...
                <environmentVariables>
            <MAVEN_OPTS>--enable-preview --add-modules jdk.incubator.vector -ea </MAVEN_OPTS>
          </environmentVariables>
            </configuration>
                </execution>

except that it does not work.