我想在Linux系统上的Grails项目中引用IntelliJ IDEA 9.0.2中的类。我加入了依赖性BuildConfig.groovy
:IntelliJ IDEA Grails没有看到罐子
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
runtime 'mysql:mysql-connector-java:5.1.5'
compile 'org.apache.poi:poi-ooxml:3.6'
}
我看到我的~/.ivy2/cache
目录org.apache.poi
,但在坛子里引用一个类时得到一个编译错误。实际上,代码完整并不显示任何org.apache.poi
类。所以看来IntelliJ不知道这些类。
任何想法我做错了什么?为什么IntelliJ看不到这些类?
只是一个更新,这个有用的答案,在的IntelliJ 13.1,现在是:工具 - > Grails的 - >同步Grails设置。 – Quad64Bit 2014-03-20 14:59:09