Was my question confusing or isn´t anyone using findbugs with maven-site 3 and external file configuration?

On 13/10/2011 16:25, Fabricio Lemos wrote:
Can anyone help me configure findbugs in the site reporting?

I use an external file to exclude some checks, so I used this configuration: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html and adapted it to maven-site 3.

It works with checkstyle but fails with findbugs. Here is the log:

mvn clean compile site
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jee6-intranet 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jee6-intranet --- [INFO] Deleting D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jee6-intranet ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ jee6-intranet --- [INFO] Compiling 7 source files to D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet\target\classes
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) @ jee6-intranet ---
[INFO] configuring report plugin org.codehaus.mojo:findbugs-maven-plugin:2.3.2
[INFO] canGenerate is true
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.5 [INFO] Parent project loaded from repository: br.gov.ce.sefaz.jee:sefaz-jee-parent:pom:0.0.1-SNAPSHOT [INFO] Parent project loaded from repository: br.gov.ce.sefaz:sefaz-parent:pom:0.0.2-SNAPSHOT [WARNING] No project URL defined - decoration links will not be relativized! [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin. [INFO] Generating "FindBugs Report" report --- findbugs-maven-plugin:2.3.2
[INFO] canGenerate is true
[INFO] canGenerate is true
[INFO] Locale is en
[INFO] ****** FindBugsMojo executeReport *******
[INFO] XML outputFile is D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet\target\findbugsXml.xml [INFO] XML output Directory is D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet\target
[INFO] ****** FindBugsMojo executeFindbugs *******
[INFO] Temp File is D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet\target\findbugsTemp.xml
[INFO] Fork Value is true
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.266s
[INFO] Finished at: Thu Oct 13 16:12:30 GMT-03:00 2011
[INFO] Final Memory: 19M/47M
[INFO] ------------------------------------------------------------------------ [ERROR] Could not find resource 'build-configuration/findbugs-exclude.xml'. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ResourceNotFoundException
D:\projetos\arquitetura\projetos_exemplo\jee6\jee6-intranet>

I´m pretty sure that the file build-configuration/findbugs-exclude.xml does exists.

And this is my pom configuration:

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.5</version>
<configuration>
<failsOnError>true</failsOnError>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<configLocation>build-configuration/checkstyle.xml</configLocation>
</configuration>
<dependencies>
<dependency>
<groupId>br.gov.ce.sefaz</groupId>
<artifactId>build-configuration</artifactId>
<version>${build.configuration.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<excludeFilterFile>build-configuration/findbugs-exclude.xml</excludeFilterFile>
</configuration>
<dependencies>
<dependency>
<groupId>br.gov.ce.sefaz</groupId>
<artifactId>build-configuration</artifactId>
<version>${build.configuration.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<excludeFilterFile>build-configuration/findbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.5</version>
<configuration>
<configLocation>build-configuration/checkstyle.xml</configLocation>
</configuration>
</plugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>

thanks in advance,
Fabrício Lemos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to