Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-274

Use Groovy 3.x to prevent Java9+ warnings about Groovy 2.x using illegal reflection

    XMLWordPrintableJSON

Details

    • Dependency upgrade
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • JDK9+

    Description

      Problem

      Running integration tests with maven-invoker-plugin in JDK with version >= 9 (incl. OpenJDK 11, 14, 15, etc.) will generate these un-aesthetic messages:

      [INFO] run post-build script verify.groovy
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/d:/Dev2/maven/repository/org/codehaus/groovy/groovy-all/2.4.8/groovy-all-2.4.8.jar) to method java.lang.Object.clone()
      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
      

      Specification

      Use Groovy 3.x which solved all illegal accesses that were in 2.x.

      Most current version is:

          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy-all</artifactId>
          <version>3.0.7</version>
          <type>pom</type>
      </dependency>
      

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              bertrandmartin Bertrand Martin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: