【问题标题】:Grails - Jasper plugin dependency download errorGrails - Jasper 插件依赖项下载错误
【发布时间】:2016-10-30 07:31:03
【问题描述】:

我正在尝试为 grails 下载 jasper 插件,但如果我将依赖项放在 build.gradle 中,我会不断收到此错误:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Eventos Unipar'.
> Could not resolve all dependencies for configuration ':runtime'.
   > Could not find org.olap4j:olap4j:0.9.7.309-JS-3.
     Searched in the following locations:
         file:/C:/Users/xSlok/.m2/repository/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.pom
         file:/C:/Users/xSlok/.m2/repository/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.jar
         http://repo.grails.org/grails/repo/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.pom
         http://repo.grails.org/grails/repo/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.jar
     Required by:
         eventosunipar:Eventos Unipar:0.1 > org.grails.plugins:jasper:1.11.0 > net.sf.jasperreports:jasperreports:5.6.1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output

我使用的依赖是

compile "org.grails.plugins:jasper:1.11.0" 

我正在使用的 maven 存储库的 url 是

http://repo.grails.org/grails/repo

这个也试过了

http://repo.grails.org/grails/core

有人知道发生了什么吗?

【问题讨论】:

    标签: java maven grails


    【解决方案1】:

    有时 grails 存储库中的 jasper 库会损坏。

    要解决这个问题,你只需要添加这个 repo:

    http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts

    希望能解决你的问题

    参考:http://community.jaspersoft.com/questions/826431/failure-find-orgolap4jolap4jjar097309-js-3

    【讨论】:

      【解决方案2】:

      今天我正在回答,以下链接有效

      mavenRepo("https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/")
      

      【讨论】:

        【解决方案3】:

        您可以尝试排除 olap4j。

        implementation(group: 'net.sf.jasperreports', name: 'jasperreports', version: '6.1.0'){
                    exclude module:'olap4j'
                }
        

        【讨论】:

          【解决方案4】:

          导入maven

             <repository>
                  <id>jr-ce-releases</id>
                  <url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
              </repository>
          

          【讨论】:

            【解决方案5】:

            Jaspersoft 已将他的存储库更改为 https: https://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts

            【讨论】:

            • 抱歉,这不可能或不再正确,因为您的 URL 会产生 HTTP 404
            猜你喜欢
            • 1970-01-01
            • 2012-03-06
            • 1970-01-01
            • 2018-01-30
            • 2014-04-25
            • 2012-10-27
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多