mvn site
使用命令构建诱惑报告时出现错误。
非拉丁字符表示为 '????' 在 .html 报告中,尽管字符在 /allure-reports 文件夹中的 .xml 文件中正确编码。
surefire-plugin 部分如下所示。在命令行中执行“mvn clean install site”时,我也使用 UTF-8 键。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<argLine>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${version.aspectj}/aspectjweaver-${version.aspectj}.jar -Dfile.encoding=UTF-8</argLine>
<argLine>-Dfile.encoding=UTF-8</argLine>
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.junit.AllureRunListener</value>
</property>
<!--<systemPropertyVariables>-->
<!--<browser_type>${browser_type}</browser_type>-->
<!--</systemPropertyVariables>-->
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${version.aspectj}</version>
</dependency>
</dependencies>
</plugin>