Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.3.2
-
Component/s: None
-
Labels:None
-
Number of attachments :1
Description
findBugs in an reporting section seems to have an impact on the generation of the surefire-report of the project site. This report is empty
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.3</version>
</plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</reporting>
Attachments
-
$i18n.getText("admin.common.words.hide")
- mfindbugs-109.zip
- 21/Jan/10 11:26 AM
- 46 kB
- christoph schmidt-casdorff
-
- mfindbugs-109/.classpath 0.4 kB
- mfindbugs-109/.project 0.4 kB
- mfindbugs-109/.../org.eclipse.jdt.core.prefs 0.6 kB
- mfindbugs-109/bin/Dummy.class 0.3 kB
- mfindbugs-109/bin/TestTheTest.class 0.7 kB
- mfindbugs-109/findbugsExclude.xml 0.1 kB
- mfindbugs-109/out.txt 5 kB
- mfindbugs-109/pom.xml 4 kB
- mfindbugs-109/src/main/java/Dummy.java 0.1 kB
- mfindbugs-109/src/.../java/TestTheTest.java 0.2 kB
- mfindbugs-109/target/classes/Dummy.class 0.3 kB
- mfindbugs-109/target/findbugs.xml 0.2 kB
- mfindbugs-109/target/findbugsExclude.xml 0.1 kB
- mfindbugs-109/target/findbugsXml.xml 10 kB
- mfindbugs-109/target/.../css/maven-base.css 2 kB
- mfindbugs-109/target/.../css/maven-theme.css 3 kB
- mfindbugs-109/target/site/css/print.css 0.2 kB
- mfindbugs-109/target/site/css/site.css 0.1 kB
- mfindbugs-109/target/.../dependencies.html 11 kB
- mfindbugs-109/target/site/findbugs.html 4 kB
- mfindbugs-109/target/.../images/close.gif 0.3 kB
- mfindbugs-109/target/.../collapsed.gif 0.1 kB
- mfindbugs-109/target/.../images/expanded.gif 0.1 kB
- mfindbugs-109/target/.../images/external.png 0.2 kB
- mfindbugs-109/target/.../icon_error_sml.gif 1.0 kB
- mfindbugs-109/target/.../icon_info_sml.gif 0.6 kB
- mfindbugs-109/.../icon_success_sml.gif 1.0 kB
- mfindbugs-109/.../icon_warning_sml.gif 0.6 kB
- mfindbugs-109/.../build-by-maven-black.png 2 kB
- mfindbugs-109/.../build-by-maven-white.png 2 kB
$i18n.getText("admin.common.words.show")- mfindbugs-109.zip
- 21/Jan/10 11:26 AM
- 46 kB
- christoph schmidt-casdorff
Activity
Hi Garvin,
I uploaded an example showing the case
We use maven 2.2.1 and jdk 1.5 (we use enforcer-plugin)
If you call maven site on the project the resulting project-report contains an empty surefire-report.
There are two situations where the error doesn't occur
1) you have to delete the clean plugin from the build/plugins-section
2) you have to delete the findBugs-plugin from the reporting-section
I don't understand why Garvin closed this issue with FIXED status. There is no fix.
FindBugs is forking new Maven life cycle. You have:
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
in your sample pom. This is wrong.
Every forking plugin will invoke clean before it's own execution.
This issue should be closed as WONT FIX.
The issue is closed correctly. Test of the current version 2.3.2-SNAPSHOT produce a surefire report while the previous versions did not. This was tested on windows and osx. If you have different results please forward the project.
Garvin
More information would be beneficial. I cannot reproduce this with version 2.3 or 2.4-SNAPSHOT with any number of my projects or other Open Source projects.
Garvin