我正在尝试使用专用插件构建Grails 2.0应用程序:
在mycompany-core插件中,我创建了一些域类,并在BuildConfig.groovy中添加了一个joda-time依赖项:
plugins {
build(":tomcat:$grailsVersion",
":release:1.0.1",
":svn:1.0.2") {
export = false
}
build(":joda-time:1.3.1")
}
在mycompany-frontend应用程序中,我具有以下BuildConfig.groovy:
plugins {
runtime ":hibernate:$grailsVersion"
runtime ":resources:1.1.5"
build "mycompany:mycompany-core:0.1-SNAPSHOT"
build ":svn:1.0.2"
build ":spring-security-core:1.2.7"
build ":tomcat:$grailsVersion"
}
我还从application.properties中删除了grails.plugins条目,以避免造成混淆。
但是最后,mycompany-frontend无法从mycompany-core插件中找到模型类。
我应该怎么看/解决这个问题?
最佳答案
您是否尝试将对核心插件的依赖关系定义为运行时/编译依赖关系而非构建?
关于grails - Grails 2.0插件依赖性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9295732/