Grails - Jasper插件依赖性下载错误

时间:2016-10-30 07:31:03

标签: java maven grails

我正在尝试为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

有谁知道发生了什么?

3 个答案:

答案 0 :(得分:2)

有时候grails repo中的jasper库会被破坏。

要解决此问题,您只需添加此回购:

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

我希望这能解决你的问题

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

答案 1 :(得分:1)

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

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

答案 2 :(得分:-1)