【问题标题】:Incorrect encoding of allure report诱惑报告编码不正确
【发布时间】:2015-04-02 12:27:09
【问题描述】:

我在使用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>

【问题讨论】:

    标签: maven allure


    【解决方案1】:

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

    你可以在这里找到所有关于发布的信息https://github.com/allure-framework/allure-core/releases

    【讨论】:

    • 谢谢!我会尝试新版本,很快就会有结果。
    • 是的,它已在 1.4.5 中修复
    • @malover 很高兴听到。你能把答案标记为正确的吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-16
    相关资源
    最近更新 更多