Grails 2.5 ......
我在SVN存储库中有一个插件。
这是构建配置(减去身份验证凭据)....
grails.project.dependency.resolver = "maven" // maven or ivy
grails.project.dependency.resolution = {
inherits("global") {
// specify dependency exclusions here; for example, uncomment this to disable ehcache:
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve
legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenLocal()
mavenCentral()
mavenRepo "http://repo.grails.org/grails/plugins"
mavenRepo name:"*********", root: "*********************"
}
plugins {
runtime ':org-calendar-viewer:0.7.9'
}
但我总是得到一个依赖解析错误,它无法在grailsCentral找到插件。当然,插件不能在不同的回购中。 GrailsCentral是它看起来的最后一个地方吗?或者它看起来的第一个地方?
Resolve error obtaining dependencies: Could not find artifact in grailsCentral (https://repo.grails.org/grails/plugins)
我尝试评论grails repos然后它失败了
Resolve error obtaining dependencies: Could not find artifact in mavenCentral (https://repo1.maven.org/maven2/)
所以看来只检查一个(第一个)位置后会出现错误?