git-code-format-maven-plugin Java 17 maven plugin Error #134
-
Hi I want to run git-code-format-maven-plugin in Java17 without giving any jvm parameters to command line(https://github.com/google/google-java-format/releases/tag/v1.10.0).For that reason I added necessary jvm flags to maven compiler plugin but still got error class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x26bd2d7d) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.parser to unnamed module @0x26bd2d7d
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think you can do it by modifying Why couldn't you do it like this ? |
Beta Was this translation helpful? Give feedback.
I don't think you can do it by modifying
pom.xml
only. The parameters are to be passed to the JVM that runs Maven itself.Why couldn't you do it like this ?