Comments (7)
Closing issue as this is not a problem with our library. Groovy is aware of the issue and it is not fixed in any of their versions includuing 2.5, 2.6, and 3.0 releases. There is no need for us to track their issue. We are otherwise good through jdk10.
from spotbugs-maven-plugin.
We should be able to fix this when when using <fork>true</fork>
by adding the appropriate --add-opens
arguments for the forked JVM. I did something similar for a Maven plugin that uses Jython: airlift/sphinx-maven-plugin@c870da4
from spotbugs-maven-plugin.
from spotbugs-maven-plugin.
I still see this warning with version 3.1.10
of the plugin. It actually happens during configuration, even if the plugin is disabled with <skip>true</skip>
:
[INFO] --- spotbugs-maven-plugin:3.1.10:spotbugs (spotbugs) @ presto-spi ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/Users/dphillips/.m2/repository/org/codehaus/groovy/groovy/2.5.4/groovy-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
[INFO]
[INFO] <<< spotbugs-maven-plugin:3.1.10:check (default-cli) < :spotbugs @ presto-spi <<<
from spotbugs-maven-plugin.
Ah, I see that the plugin itself is written in Groovy (rather than embedding it), which explains why it happens even when disabled, so the suggested workaround isn't an option.
from spotbugs-maven-plugin.
from spotbugs-maven-plugin.
For those curious to follow and/or vote for the root issue:
https://issues.apache.org/jira/browse/GROOVY-8339
from spotbugs-maven-plugin.
Related Issues (20)
- Parallel build without forking in a multi-module leads to spotbugs getting stuck HOT 17
- Make sarifFinalFile folder customisable
- Make sarif output file name customisable
- Spotbugs Xml Output file Locked After Execution (Windows only) HOT 2
- WARNING: A terminally deprecated method in java.lang.System has been called HOT 3
- Auxiliary classpath is broken HOT 2
- Extraneous "following classes needed for analysis were missing" message introduced in 4.7.3.1? HOT 3
- SuppressFBWarnings is ignored HOT 10
- spotbugs:gui not working HOT 3
- Extend via dependencies rather than custom configuration HOT 8
- Uses deprecated maven components HOT 8
- Does spotbugs report plugin support aggregation HOT 2
- Review replacing usage of 'ant'
- FindBugsAntBuildLogic 3.7 generates invalid findbugs_report.xml file HOT 2
- java 22 support will be in groovy 4.0.16 which isn't out yet HOT 2
- plugin build setting HOT 8
- makeConcatWithConstants + apply classes needed for analysis were missing HOT 1
- check does not fail if called as defaultGoal of profile HOT 4
- Build repeats "Unable to create Maven project for" warning and fails HOT 5
- NOTICE: Maven support will be moved to 3.6.3 as minimum on next release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotbugs-maven-plugin.