Christophe Marchand created ARCHETYPE-634:
---------------------------------------------
Summary: WARNING: An illegal reflective access operation has
occurred
Key: ARCHETYPE-634
URL: https://issues.apache.org/jira/browse/ARCHETYPE-634
Project: Maven Archetype
Issue Type: Improvement
Components: Plugin
Affects Versions: 3.2.1
Environment: MacOS / JDK11
Reporter: Christophe Marchand
Having an archetype with a {{archetype-post-generate.groovy}} file inside, when
generating a new project with JDK11, I get a WARNING :
{{[*INFO*] Executing META-INF/archetype-post-generate.groovy post-generation
script}}
{{WARNING: An illegal reflective access operation has occurred}}
{{WARNING: Illegal reflective access by
org.codehaus.groovy.reflection.CachedClass
(file:.../.m2/repository/org/codehaus/groovy/groovy-all/2.4.16/groovy-all-2.4.16.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{}}}
{{Components :}}
{{08:50 $ mvn -version}}
{{Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)}}
{{Maven home: /Users/cmarchand/applications/apache-maven-3.8.4}}
{{{}Java version: 11.0.4, vendor: AdoptOpenJDK,
runtime:{}}}{{{}/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home{}}}
{{Default locale: fr_FR, platform encoding: UTF-8}}
{{OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"}}
{{08:51 $ java -version}}
{{openjdk version "11.0.4" 2019-07-16}}
{{OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)}}
{{OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)}}
{{Problem comes probably from groovy-all dependency, which is quite old
(2.4.16), and should be upgraded to a more recent one (4.0.6 is available)}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)