On Sat, May 18, 2024 at 2:43 PM Ullrich Hafner <ullrich.haf...@gmail.com> wrote:
> It seems that the Maven SpotBugs and the Maven Flatten plugin are not > compatible when used together. They are in general. I am using a SpotBugs exclusion filter from another jar file and SpotBugs > seems to create a zero length copy of that file when the flatten plugin is > active. > Not sure offhand why a zero-length file, but how specifically do you use a filter from another JAR file? SpotBugs filters should not be packed into production JAR files to begin with. I think you are better off simply copying the filter into a new destination in `src/spotbugs/excludesFilter.xml` (and then removing entries as the corresponding bug types are either fixed, or suppressed via annotation). I wanted to ask why we need the maven flatten plugin for the incremental > builds? The answer is complicated but you can read JEP-305 if you really want to know. > Is this plugin optional? No. > what happens if I set the property -Dflatten.flatten.skip in my > Jenkinsfile? Are then incremental builds still created? > No, things will be broken. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0_Qu%3DyCaupwwhveBsydtBYjQdwcEspUPzso%2BBLGjYC1w%40mail.gmail.com.