【发布时间】:2014-02-21 08:23:09
【问题描述】:
我正在使用 maven-surefire-report-plugin 来生成单元测试报告。 这工作正常,但是报告包含指向未显示的图像的链接。 如何让 Maven 复制报告所需的图标? 我应该使用皮肤吗?我试过了但没有成功。 这是 maven-surefire-report-plugin 的定义:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.16</version>
<configuration>
<showSuccess>true</showSuccess>
</configuration>
</plugin>
</plugins>
</reporting>
我尝试添加皮肤插件但不影响报告:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-application-skin</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
用图片展示报告缺少什么?
【问题讨论】:
-
您能否展示一个不符合您需求的示例报告?
-
报告没问题。它只是不显示链接的图像。例如:icon_error_sml.gif icon_success_sml.gif