我想在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