link name wrong while using the report-only goal of the 
maven-surefire-report-plugin
------------------------------------------------------------------------------------

                 Key: SUREFIRE-753
                 URL: https://jira.codehaus.org/browse/SUREFIRE-753
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Report Plugin
    Affects Versions: 2.9
            Reporter: Karl Heinz Marbaise


I have configured the maven-surefire-report-plugin to run the report-only goal 
and produce a report out of the maven-failsafe-plugin (integration tests). 

The problem is that the link on the generated site is not named as the the 
outputName defines in contradiction the name of the link is left to "Surefire 
Report" which results in my current project to have two links "Surefire Report" 
where the first one represents the report of maven-surefire-plugin and the 
second the report about the maven-failsafe-
plugin.

Technically does this mean that the generated HTML code for the navigation 
looks like this:
{code}
<a href="failsafe-report.html" title="Surefire Report">Surefire Report</a>
{code}

Here the pom.xml snippet how i configured the report-plugin:
{code}
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.9</version>
        <configuration>
          <outputName>failsafe-report</outputName>
          <reportsDirectories>
            
<reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
          </reportsDirectories>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>report-only</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
{code}
This means the name of the link in the navigation must be changed as well. May 
be it's needed to have a supplemental configuration parameter for this or the 
outputName could be used instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to