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

SpotBugs not generating HTML report in the target directory #2791

Open
thenocturnalguy opened this issue Dec 29, 2023 · 3 comments
Open

SpotBugs not generating HTML report in the target directory #2791

thenocturnalguy opened this issue Dec 29, 2023 · 3 comments

Comments

@thenocturnalguy
Copy link

thenocturnalguy commented Dec 29, 2023

I am trying to generate Spotbugs HTML report under target/reports directory but the report is getting generated under target directory.
Here's my configuration in POM.xml

<plugin>
          <groupId>com.github.spotbugs</groupId>
          <artifactId>spotbugs-maven-plugin</artifactId>
          <version>4.8.2.0</version>
          <configuration>
	          <includeFilterFile>spotbugs-security-include.xml</includeFilterFile>
	          <excludeFilterFile>spotbugs-security-exclude.xml</excludeFilterFile>
	          <plugins>
		          <plugin>
			          <groupId>com.h3xstream.findsecbugs</groupId>
			          <artifactId>findsecbugs-plugin</artifactId>
			          <version>1.12.0</version>
		          </plugin>
	          </plugins>
	          <htmlOutput>true</htmlOutput>
	          <xmlOutputDirectory>target/reports</xmlOutputDirectory>
	          <htmlOutputDirectory>target/reports</htmlOutputDirectory>
	          <xmlOutputDirectory>target/reports</xmlOutputDirectory>
          </configuration>
          <executions>
	          <execution>
          
		          <goals>
			          <goal>check</goal>
		          </goals>
	          </execution>
          </executions>
 </plugin>

Not sure whether it is a bug or I am missing something.

Copy link

welcome bot commented Dec 29, 2023

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

@hazendaz
Copy link
Member

Noticed you have 'XmlOutputDirectory' twice, did you mean on second one to have 'spotbugsXmlOutputDirectory'?

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

2 participants