1

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>
4

1 回答 1

1

版本 1.4.4 中的问题。在 1.4.5 中修复

您可以在此处找到有关版本的所有信息https://github.com/allure-framework/allure-core/releases

于 2015-02-03T11:53:21.337 回答