IntelliJ plugin versus Maven plugin
Hello,
Disclaimer: I am new to IntelliJ (coming from Visual Studio).
I have setup the findbugs maven plugin and configured it in my POM file to run on compile (see below). However, when I use the IDE Build menu to recompile the java application I do not see any of the errors that findbugs should report (i.e. I have put a null dereference error in there intentionally to test it). Nothing shows up in the IDE's messages window.
It only seems to run and report errors when I open 'Maven Projects' window and run the lifecycle stage directly.
So... I am slightly confused on how Maven projects integrate into the IDE's main build/run menus, if at all? Should I only be using the Maven Projects window to build and run a maven project, or am I missing something such that I should be able to expect the Build menu of the idea to execute the Maven lifecycles correctly.
Appreciate the help.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
<failOnError>true</failOnError>
</configuration>
<executions>
<execution>
<id>analyze-compile</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
Please sign in to leave a comment.