You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Shanahan (JIRA)" <ji...@codehaus.org> on 2008/03/25 21:46:58 UTC

[jira] Created: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

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

        

[jira] Commented: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128793#action_128793 ] 

Robert Shanahan commented on SUREFIRE-478:
------------------------------------------

I worked around this by setting <inherited>false</inherited>. Apparently each submodule ran the same surefire-report plugin config and the last to run was the ear module, which has no test results, hence the empty surefire-report.html file. The following configuration works.

{code:xml}
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<outputDirectory>/data/reports</outputDirectory>
<aggregate>true</aggregate>
</configuration>
</plugin>                    
</plugins>
</reporting>
{code}


> 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

        

[jira] Commented: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Commented: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128588#action_128588 ] 

Robert Shanahan commented on SUREFIRE-478:
------------------------------------------

None of c:/data/reports, c:\data\reports or c:\\data\\reports works. Each creates an empty surefire-report.html file, so clearly the path is reachable.

> 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

        

[jira] Issue Comment Edited: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128596#action_128596 ] 

rshan edited comment on SUREFIRE-478 at 3/25/08 5:53 PM:
-------------------------------------------------------------------

I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

{code:xml}
<reporting>
   <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-report-plugin</artifactId>
          <configuration>
             <outputDirectory>/data/reports</outputDirectory>
             <aggregate>true</aggregate>
           </configuration>
         </plugin>                    
      </plugins>
</reporting>
{code}

      was (Author: rshan):
    I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

{code:xml}
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>
{code}
  
> 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

        

[jira] Commented: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128596#action_128596 ] 

Robert Shanahan commented on SUREFIRE-478:
------------------------------------------

I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

> 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

        

[jira] Closed: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Shanahan closed SUREFIRE-478.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.2

> 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
>             Fix For: 2.4.2
>
>
> 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

        

[jira] Closed: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed SUREFIRE-478.
--------------------------------------

    Resolution: Won't Fix

> 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
>             Fix For: 2.4.2
>
>
> 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

        

[jira] Reopened: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann reopened SUREFIRE-478:
----------------------------------------


> 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
>             Fix For: 2.4.2
>
>
> 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

        

[jira] Commented: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128585#action_128585 ] 

Benjamin Bentmann commented on SUREFIRE-478:
--------------------------------------------

bq. <outputDirectory>/data/reports</outputDirectory>
Possibly a misconfiguration: The leading slash indicates an absolute path on Unix systems. Even though you are running on Windows (where the path will be interpreted a drive-relative), Maven's internal logic will not resolve this path to the project base directory. What if you simply drop the leading slash?

> 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

        

[jira] Issue Comment Edited: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128596#action_128596 ] 

rshan edited comment on SUREFIRE-478 at 3/25/08 5:48 PM:
-------------------------------------------------------------------

I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>


      was (Author: rshan):
    I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

<pre>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>
</pre>
  
> 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

        

[jira] Issue Comment Edited: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128596#action_128596 ] 

rshan edited comment on SUREFIRE-478 at 3/25/08 5:52 PM:
-------------------------------------------------------------------

I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

{code:xml}
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>
{code}

      was (Author: rshan):
    I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>

  
> 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

        

[jira] Issue Comment Edited: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128596#action_128596 ] 

rshan edited comment on SUREFIRE-478 at 3/25/08 5:47 PM:
-------------------------------------------------------------------

I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.

<pre>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-report-plugin</artifactId>
                        <configuration>
                            <outputDirectory>/data/reports</outputDirectory>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>                    
                    </plugins>
            </reporting>
</pre>

      was (Author: rshan):
    I tried data/reports and that didn't work either.

I also tried configuring this under the <reporting> section and got exactly the same results.
  
> 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

        

[jira] Issue Comment Edited: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

Posted by "Robert Shanahan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128588#action_128588 ] 

rshan edited comment on SUREFIRE-478 at 3/25/08 5:22 PM:
-------------------------------------------------------------------

None of data/reports, c:/data/reports, c:\data\reports or c:\\data\\reports works. 


Each creates an empty surefire-report.html file, so clearly the path is reachable.

      was (Author: rshan):
    None of c:/data/reports, c:\data\reports or c:\\data\\reports works. Each creates an empty surefire-report.html file, so clearly the path is reachable.
  
> 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