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
[INFO] Scanning for projects...
...
[INFO]
[INFO] --- groovy-maven-plugin:2.1.1:execute (default-cli) @ lake ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/btiernay/.m2/repository/org/codehaus/groovy/groovy-all/2.4.9/groovy-all-2.4.9.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
...
I am not really sure how Java 11 works in this respect, mostly only know that Java 11 breaks a lot of things so I am still mostly using Java 8. But I can probably get some time to take a closer look and maybe look at what a more modern groovy version has in terms of compiler flags.
Using:
$java -version
executing the following:
with:
gives:
Which is likely related to https://issues.apache.org/jira/browse/GROOVY-8339.
I'm wondering if there is a way to pass the
--illegal-access=warn
compiler option to prevent this, perhaps with a new plugin configuration?The text was updated successfully, but these errors were encountered: