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)

Reply via email to