Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Grails-Jasper插件依赖项下载错误_Java_Maven_Grails - Fatal编程技术网

Java Grails-Jasper插件依赖项下载错误

Java Grails-Jasper插件依赖项下载错误,java,maven,grails,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'

我正在尝试为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" 
http://repo.grails.org/grails/repo
我使用的maven存储库的url是

compile "org.grails.plugins:jasper:1.11.0" 
http://repo.grails.org/grails/repo
已经试过这个了

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

有人知道发生了什么吗?

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

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

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

我希望这能解决你的问题


参考资料:

今天我要回答的是,以下链接有效

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