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
- relates to
-
MINVOKER-182 Different groovy versions on test classpath can cause ClassCastException
- Open
-
MJMOD-6 Remove the WARNING during integration tests
- Open
-
MINVOKER-285 Consider of using groovy-all once again
- Closed
- links to
(1 links to)