Comments (22)
Well, now I'm getting a different error:
[ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.0-RC7:gui (default-cli) on project user-management-service: Execution default-cli of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.0-RC7:gui failed: java doesn't support the nested "getThresholdParameter" element.: The type doesn't support the nested "getThresholdParameter" element. -> [Help 1]
This is using RC7 of the maven plugin, and 3.1.0 of spotbugs. I was using plugins as well, but removing them did not eliminate the error.
from spotbugs-maven-plugin.
Can you please change to the latest version and verify again?
from spotbugs-maven-plugin.
I still see it with these versions:
spotbugs-maven-plugin-3.1.0-20170923.035155-1
spotbugs-3.1.0-RC5
fb-contrib 7.0.5sb
from spotbugs-maven-plugin.
The latest spotbugs version is 3.1.0.
from spotbugs-maven-plugin.
I still see it with 3.1.0 on the same Maven plugin snapshot
from spotbugs-maven-plugin.
@jasonab Is this related to this -> here
@iloveeclipse I haven't released official 3.1.0 cut yet. Because it looks like the issue with gui might be fixed now as it had previously attempted PR that needs cleaned up and seems developer trying to fix it might have it addressed soon, I'll wait a bit to pick that up. Hopefully it is same issue as this here.
from spotbugs-maven-plugin.
@hazendaz seems like that might very well be the case
from spotbugs-maven-plugin.
It's done.
from spotbugs-maven-plugin.
thanks @VsevolodGolovanov
from spotbugs-maven-plugin.
@jasonab Can you try version 3.1.0-RC7 of spotbugs-maven-plugin and let me know if this issue is addressed?
from spotbugs-maven-plugin.
from spotbugs-maven-plugin.
@VsevolodGolovanov I"m unfamiliar with this piece. It doesn't look like the code is correct. Simple run of the gui fails as @jasonab indicated. I moved the threshold method into the findbugs trait class. Then it complianed that there was no threshold so I assumed that was in the wrong place. However, adding the threshold, it then crashes because threshold is not a valid option to gui. So I commented that out, now it opens. I'm not sure what the end use case is so I'm a bit worried about sending a PR.
So essentially, I think
spotbugsArgs << getThresholdParameter()
Does not belong in the GUI code. Can you confirm?
from spotbugs-maven-plugin.
I don't understand the intent either. I just checked that it wasn't my subj-related code that added the issue. Then I posted the likely offending commit to save others some time looking for it. I should've been more clear about all this in my previous comment.
I created FindBugsPluginsTrait to consolidate the FindBugs plugins related logic, so this commit doesn't make sense to me at all on the code structure level.
from spotbugs-maven-plugin.
@gleclaire Can you help out here?
from spotbugs-maven-plugin.
Yes I accidentally checked in some code I was working on to have the gui have the parameters the command line does.
I will fix and commit.
Unfortunately I have not found a good way to do automated integration tests for the gui
from spotbugs-maven-plugin.
Thanks @gleclaire
@VsevolodGolovanov I have released 3.1.0-RC8. Can you take a look and let me know if this solves the overall issue?
from spotbugs-maven-plugin.
My apologies for the delayed feedback here. RC8 appears to solve the problem for me.
from spotbugs-maven-plugin.
@jasonab Thanks! I'll close this ticket now.
from spotbugs-maven-plugin.
Document at http://spotbugs.readthedocs.io/en/latest/maven.html should reference RC8 since RC7 has this issue.
from spotbugs-maven-plugin.
@urbandroid Can you report that over on spotbugs? 3.1.1 of this plugin was released so no override is needed now.
from spotbugs-maven-plugin.
Or actuallly not even sure where to open that for a fix myself. @iloveeclipse where do we update the doc for maven information? This issue is fixed on 3.1.1 release and we should reference the right version on the docs. I sort of think that comes out of spotbugs itself as I found the source page but it has a bunch of variables and not sure where those are set to show the right stuff.
from spotbugs-maven-plugin.
where do we update the doc for maven information?
Readthedocs has a good feature: on every page you read you see the link in the top right corner "Edit on GitHub". In current case this would be https://github.com/spotbugs/spotbugs/blob/master/docs/maven.rst
.
from spotbugs-maven-plugin.
Related Issues (20)
- 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 9
- 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 6
- NOTICE: Maven support will be moved to 3.6.3 as minimum on next release HOT 1
- Sporadic spotbugs failure HOT 1
- Spotbugs Maven Plugin 4.8.4 waiting on groovy! HOT 1
- Support the `chooseVisitors` option
- Is there a way to configure an accepted number of errors in order to introduce spotbugs into existing projects HOT 2
- All documentation descriptions are empty HOT 1
- After recent updates in core libraries ad plugin `verify` and `spotbugs:check` works differently
- Plugin tries to fetch latest snapshot version HOT 7
- GHA - remove the duplicate codeql file HOT 1
- Release 4.8.6.0 suddenly requires Java 11 HOT 2
- outputDirectory default value is invalid. HOT 5
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.