[ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128591#action_128591 ]
Benjamin Bentmann commented on SUREFIRE-478: -------------------------------------------- Just for clarity: I suggested to use {code:xml} <outputDirectory>data/reports</outputDirectory> {code} i.e. a portable relative path, not absolute paths. Also, I now notice that you have misconfigured the Surefire Report Plugin: It's a reporting plugin (unlike maven-surefire-plugin, which does the major work), so it needs to be configured unter the {{<reporting>}} section of the POM. See also its [usage guide|http://maven.apache.org/plugins/maven-surefire-report-plugin/usage.html]. > Specifying <aggregate>true</aggregate> plus an <outputDirectory> results in > an empty surefire-report.html file > -------------------------------------------------------------------------------------------------------------- > > Key: SUREFIRE-478 > URL: http://jira.codehaus.org/browse/SUREFIRE-478 > Project: Maven Surefire > Issue Type: Bug > Components: report plugin > Affects Versions: 2.4.2 > Environment: Windows XP SP2; jdk1.5.0_14; Maven 2.0.8 > Reporter: Robert Shanahan > > The following configuration snippet, from the parent pom of a multi-module > project, results in an empty surefire-report.html file. Using default output > directory works just fine with aggregate set to true. Setting aggregate to > false with a specified output directory has the same result as specifying no > output directory and aggregate to false, i.e. a non-empty > surefire-report.html file is created, but it has no test results since it is > the top level pom. > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-report-plugin</artifactId> > <configuration> > <outputDirectory>/data/reports</outputDirectory> > <aggregate>true</aggregate> > </configuration> > <executions> > <execution> > <phase>test</phase> > <goals> > <goal>report-only</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> -- 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