You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to enable several compileArgs as part of configuration for the maven plugin. It works when there is only a single flag without spaces, but any spaces seem to break how the contents is passed to javac.
Working example
The below adds only --enable-preview as a compileArg and works.
[ERROR] Failed to execute goal gg.jte:jte-maven-plugin:3.1.16:precompile (default) on project backend: Execution default of goal gg.jte:jte-maven-plugin:3.1.16:precompile failed: Failed to compile template, error at
[ERROR] error: invalid flag: --enable-preview --release 23
[ERROR] Usage: javac <options><source files>
[ERROR] use --help for a list of possible options
I've tried adding xml:space="preserve" as an attribute tag but it makes no difference, e.g.
Hi,
I'm trying to enable several
compileArgs
as part of configuration for the maven plugin. It works when there is only a single flag without spaces, but any spaces seem to break how the contents is passed tojavac
.Working example
The below adds only
--enable-preview
as a compileArg and works.Error example
The above fails with the following error,
I've tried adding
xml:space="preserve"
as an attribute tag but it makes no difference, e.g.Thanks for your help!
The text was updated successfully, but these errors were encountered: