Sco*_*ott 3 grails dependency-management maven grails-2.2
我们有一个Grails 2.2.4项目,我正在寻找一些工作.六个月没有完成任何工作,但当时建立得很好.
当我尝试grails clean
现在运行时,我收到了许多无法解决的相关错误.尽管几个月前所有的依赖都运行得很好.在那个时间内在存储库方面有什么变化吗?
我已将BuildConfig.groovy中的日志级别更改log "warn"
为错误消息的建议.有趣的是,当我尝试通过浏览器下载构建试图解决的一些URL时,它们下载得很好.我不确定为什么构建过程无法下载.
==== grailsCentral: tried
http://grails.org/plugins/grails-quartz/tags/RELEASE_1.0.2/quartz-1.0.2.pom
-- artifact org.grails.plugins#quartz;1.0.2!quartz.zip:
http://grails.org/plugins/grails-quartz/tags/RELEASE_1.0.2/grails-quartz-1.0.2.zip
Run Code Online (Sandbox Code Playgroud)
以下是现在没有解决的所有依赖项:
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#asset-pipeline;2.1.3: not found
:: org.grails.plugins#less-asset-pipeline;2.0.8: not found
:: org.grails.plugins#rest;0.8: not found
:: org.grails.plugins#quartz;1.0.2: not found
::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)
Sco*_*ott 16
看起来2.2中提供的默认grails repo现在不起作用.我们通过grails.project.dependency.resolution
在BuildConfig.groovy文件中向闭包添加以下行来解决此问题:
grails.project.dependency.resolution = {
/** Existing stuff here **/
repositories {
/** Other repos stay here **/
//-------- NEW REPO TO ADD IS BELOW --------//
mavenRepo "http://repo.grails.org/grails/repo/"
}
...
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2682 次 |
最近记录: |