[ https://issues.apache.org/jira/browse/MJLINK-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold updated MJLINK-79: ---------------------------------------- Fix Version/s: 3.3.0 > addOptions should not quote option strings > ------------------------------------------ > > Key: MJLINK-79 > URL: https://issues.apache.org/jira/browse/MJLINK-79 > Project: Maven JLink Plugin > Issue Type: Bug > Affects Versions: 3.2.0 > Reporter: Yasumasa Suenaga > Priority: Major > Fix For: 3.3.0 > > > I configured maven-jlink-plugin as following: > {code:java} > <addOptions> > <addOption>-XX:+HeapDumpOnOutOfMemoryError</addOption> > <addOption>-XX:+UseParallelOldGC</addOption> > </addOptions> {code} > I saw following error when I run jlink'ed binary: > {code:java} > $ ./target/maven-jlink/classifiers/linux-amd64/bin/test > Unrecognized VM option 'HeapDumpOnOutOfMemoryError -XX:+UseParallelOldGC' > Error: Could not create the Java Virtual Machine. > Error: A fatal exception has occurred. Program will exit. {code} > JLinkMojo.java would quote option string like > {noformat} > String.format("\"%s\"", String.join(" ", addOptions)){noformat} > However it should not do that because jlink would run jlink implementation > which comes from ToolProvider, not on the shell. -- This message was sent by Atlassian Jira (v8.20.10#820010)