Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis Properties #113

Closed
monepic opened this issue Mar 18, 2019 · 3 comments
Closed

Analysis Properties #113

monepic opened this issue Mar 18, 2019 · 3 comments
Assignees

Comments

@monepic
Copy link

monepic commented Mar 18, 2019

Hello,

Is there some way to set the Analysis Properties when using the maven plugin?

Thank you

Ed

@hazendaz
Copy link
Member

I'm not familiar with that aspect. I sort of took this on more for my maven knowledge than for that of findbugs/spotbugs. The code isn't super easy to read being all groovy but you might want to poke around the code and see. If you don't see this anywhere, I'd be happy to review a pull request for support of the feature.

@acolomba
Copy link

acolomba commented May 9, 2021

Analysis properties are passed as Java system properties, so they can be set in the <jvmArgs> configuration element.

E.g. to set the findbugs.assertionmethods analyzer property:

<plugin>
    <groupId>com.github.spotbugs</groupId>
    <artifactId>spotbugs-maven-plugin</artifactId>
    <configuration>
        <jvmArgs>-Dfindbugs.assertionmethods=org.apache.commons.lang3.Validate.notNull</jvmArgs>

@hazendaz
Copy link
Member

hazendaz commented Nov 7, 2023

added this to readme, closing ticket. Thanks.

@hazendaz hazendaz closed this as completed Nov 7, 2023
@hazendaz hazendaz self-assigned this Nov 7, 2023
hazendaz added a commit to hazendaz/spotbugs-maven-plugin that referenced this issue Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants