Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-634

WARNING: An illegal reflective access operation has occurred

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0
    • Plugin
    • None
    • MacOS / JDK11

    Description

      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 operationsWARNING: 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)

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              cmarchand7276 Christophe Marchand
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: