Jasper报告工件总是损坏

时间:2013-12-12 16:05:03

标签: java eclipse maven

我的项目依赖于以下工件到我的maven存储库:

    <dependency>
        <groupId>com.jaspersoft.jasperserver</groupId>
        <artifactId>jasperserver-common-ws</artifactId>
        <version>5.0.1</version>
    </dependency>
    <dependency>
        <groupId>com.jaspersoft.jaspersoft.api.metadata</groupId>
        <artifactId>jasperserver-api-metadata</artifactId>
        <version>5.0.1</version>
    </dependency>
    <dependency>
        <groupId>com.jaspersoft.jasperserver</groupId>
        <artifactId>jasperserver-ireport-plugin</artifactId>
        <version>3.7.0</version>
    </dependency>
    <dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports</artifactId>
        <version>5.0.1</version>
    </dependency>

    <dependency>
    <groupId>jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>5.0.1</version>
</dependency>

当我运行maven install eclipse输出时,警告指定了check-sum验证 失败。当我尝试使用winrar打开已安装的jar时,win-rar表示它们已损坏。我试图关闭防病毒,但工件仍然无法正常下载。

1 个答案:

答案 0 :(得分:2)

为什么你有太多dependencies

只需添加此

即可
<dependency>
    <groupId>net.sf.jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>5.5.0</version>
</dependency>

这应该足以运行您的JasperReport.