[ http://jira.codehaus.org/browse/MOJO-562?page=comments#action_80763 ] Rémy Sanlaville commented on MOJO-562: --------------------------------------
Yes it's what I understood and it's OK for me. Just to explain my context... I try to use findbug with the QALab plugin (cf. http://qalab.sourceforge.net/multiproject/maven2-qalab-plugin/index.html) For this I need an XML findbug report. So I have this configuration in my pom : <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <id>findbugs</id> <phase>verify</phase> <goals> <goal>findbugs</goal> </goals> </execution> </executions> <configuration> <xmlOutput>true</xmlOutput> <xmlOutputDirectory>${project.build.directory}/findbugs</xmlOutputDirectory> </configuration> </plugin> This will just generate the XML report in ${basedir}/target/findbugs So if I want the HTML findbug report I also have to add this in my pom <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> </plugin> This will generate the HTML report in ${basedir}/target/site It's OK for me. The last problem is described in the MOJO-563 issue Thanks again > outputDirectory skip with XML report > ------------------------------------ > > Key: MOJO-562 > URL: http://jira.codehaus.org/browse/MOJO-562 > Project: Mojo > Issue Type: New Feature > Components: findbugs > Environment: Maven 2.0.4, findbugs-maven-plugin:1.0-SNAPSHOT > Reporter: Rémy Sanlaville > Attachments: FindBugsMojo-2.patch, FindBugsMojo.patch > > > If you try to create an XML findbugs report, the plugin does not take into > account the outputDirectory description. > For example: > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>findbugs-maven-plugin</artifactId> > <version>1.0-SNAPSHOT</version> > <executions> > ... > </executions> > <configuration> > <reportFormat>xml</reportFormat> > > <outputDirectory>${project.build.directory}/findbugs</outputDirectory> > </configuration> > </plugin> > >mvn findbugs:findbugs > findbugs.xml report will be in ${project.build.directory}/ and not in > ${project.build.directory}/findbugs > I think I found the problem. > Look at the initialiseFindBugs(Locale, List) method of the FindBugsMojo class. > The plugin use the tempOutputDirectory rather than outputDirectory > You will find in attachment my patch > Remy -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
