You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2021/02/02 21:35:00 UTC
[jira] [Commented] (MINVOKER-274) Use Groovy 3.x to prevent Java9+
warnings about Groovy 2.x using illegal reflection
[ https://issues.apache.org/jira/browse/MINVOKER-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277470#comment-17277470 ]
Sylwester Lachiewicz commented on MINVOKER-274:
-----------------------------------------------
Maybe we can create an additional profile for Java 8 and overwrite the version of Groove there? or this wrong direction?
> 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
> Priority: Major
> Labels: Java8
>
> 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)