提问人:Manuel Calles 提问时间:8/15/2016 最后编辑:Burt BeckwithManuel Calles 更新时间:8/15/2016 访问量:1457
Grails - 无法从 grailsCentral 安装任何插件
Grails - Cannot install any plugin from grailsCentral
问:
我正在尝试安装这些插件:
- Spring 安全核心
- Spring Security UI
- 碧玉
但是我无法安装它们中的任何一个。
添加行时会产生以下错误:compile 'org.grails.plugins:spring-security-core:2.0.0'
BuildConfig.groovy
"C:\Program Files\Java\jdk1.8.0_101\bin\java" -Dgrails.home=C:\grails-2.4.5 -Dbase.dir=C:\Users\Usuario\IdeaProjects\SCHLUMBERGER_SURENCO\sfceSchlumbergerSurenco "-Dtools.jar=C:\Program Files\Java\jdk1.8.0_101\lib\tools.jar" -Dgroovy.starter.conf=C:\grails-2.4.5/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=UTF-8 -classpath C:\grails-2.4.5\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-2.3.11.jar;C:\grails-2.4.5\dist\grails-bootstrap-2.4.5.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails-2.4.5/conf/groovy-starter.conf "idea-print-project-settings -plain-output"|Loading Grails 2.4.5
|Configuring classpath
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-security-core:jar:2.0.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-security-core:jar:2.0.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:spring-security-core:jar:2.0.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Could not find artifact org.grails.plugins:spring-security-core:jar:2.0.0 in grailsCentral (https://repo.grails.org/grails/plugins)
|Run 'grails dependency-report' for further information.
添加行时会产生以下错误:compile 'org.grails.plugins:jasper:1.11.0'
BuildConfig.groovy
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:jasper:jar:1.11.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:jasper:jar:1.11.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:jasper:jar:1.11.0 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Could not find artifact org.grails.plugins:jasper:jar:1.11.0 in grailsCentral (https://repo.grails.org/grails/plugins)
|Run 'grails dependency-report' for further information.
环境:
- 圣杯 2.4.5
- Java 1.8.0_101 版本
- IntelliJ IDEA 15.0
- 视窗 10
答:
3赞
Burt Beckwith
8/15/2016
#1
由于错误是针对找不到的 jar,因此看起来您正在将插件依赖语句放在块中,但它们应该在块中。在指定插件时,你也可以省略 “org.grails.plugins”,因为这是默认设置:dependencies
plugins
plugins {
compile ':spring-security-core:2.0.0'
compile ':spring-security-ui:1.0-RC3'
compile ':jasper:1.11.0'
}
评论
0赞
Manuel Calles
8/18/2016
谢谢!成功了。顺便说一句,我怎么知道什么时候把引用放进去?dependencies
plugins
0赞
Burt Beckwith
8/18/2016
插件进入块,jar 进入块。请注意,在 Grails 3 中,插件是作为 jar 编译和部署的,所以一切都是 jar 依赖项。plugins
dependencies
上一个:POS UI组件插件
下一个:Pytorch 安装
评论