Checkstyle报告不显示图像

时间:2016-03-30 20:48:09

标签: maven checkstyle

我将Checkstyle添加到我的Maven项目中,它正在生成报告,但图像/样式链接已损坏。 target/site/images/仅包含rss.png。如何使图像正确生成报告?

以下是我的pom.xml中的相关部分:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>2.17</version>
            <configuration>
                <configLocation>checkstyle.xml</configLocation>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jxr-plugin</artifactId>
            <version>2.5</version>
        </plugin>

我通过IntelliJ与jxr:jxr checkstyle:checkstyle运行maven。我还尝试了不同来源的不同配置文件(checkstyle.xml)。

1 个答案:

答案 0 :(得分:1)

您必须使用epoch_time = 1459408412 for d in Obj_comment: epoch_time += 1 d.update((k, epoch_time) for k, v in d.iteritems() if k == "time_stamp") 而不是mvn site生成网站才能生成样式。另见:https://issues.apache.org/jira/browse/MCHECKSTYLE-127