You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bertrand Martin (Jira)" <ji...@apache.org> on 2020/12/29 12:18:00 UTC

[jira] [Created] (MINVOKER-274) Use Groovy 3.x to prevent Java9+ warnings about Groovy 2.x using illegal reflection

Bertrand Martin created MINVOKER-274:
----------------------------------------

             Summary: Use Groovy 3.x to prevent Java9+ warnings about Groovy 2.x using illegal reflection
                 Key: MINVOKER-274
                 URL: https://issues.apache.org/jira/browse/MINVOKER-274
             Project: Maven Invoker Plugin
          Issue Type: Improvement
         Environment: JDK9+
            Reporter: Bertrand Martin


h1. 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:

{noformat}
[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
{noformat}

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

Most current version is:
{code:xml}
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>3.0.7</version>
    <type>pom</type>
</dependency>
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)