我的Grails(2.3.6)应用BuildConfig.groovy
:
grails {
project {
dependency {
resolution = {
repositories {
inherits true
grailsHome()
mavenLocal()
mavenRepo "http://myartifactory01/myrepo"
grailsPlugins()
grailsCentral()
mavenCentral()
}
plugins {
compile ":myplugin:0.1"
}
}
}
}
server {
port {
http = 4384
}
}
}
当我运行run-app
时,我收到以下错误:
| Error Required Grails build dependencies were not found. This is normally
due to internet connectivity issues (such as a misconfigured proxy) or missing
repositories in grails-app/conf/BuildConfig.groovy. Please verify your
configuration to continue.
我已经确认该网址指向存储myplugin
插件的有效(Artifactory)maven repo。我的BuildConfig
有问题吗?它是否缺少任何属性,或者是否有任何错误配置?
答案 0 :(得分:1)
自从使用Maven dependcy.resolver之后,我需要在grailsPlugins之前添加我的mavenRepo:
repositories {
inherits true // Whether to inherit repository definitions from plugins
//mavenRepo "http://myrepo:8081/artifactory/plugins-snapshot-local"
mavenRepo "http://myrepo:8081/artifactory/plugins-release-local"
grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenCentral()
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}
答案 1 :(得分:0)
出于某种原因需要将build ":release:3.0.1"
添加为插件,我不喜欢Grails。