【发布时间】:2015-02-16 14:46:26
【问题描述】:
由于无法解决的错误,我无法使用 GR8 CRM 核心插件。
在 buildconfig.groogy (compile ': crm-core: 2.0.2') 中添加插件及其依赖项 (compile ": twitter-bootstrap: 2.3.2" compile ": less-resources: 1.3.3.2")如您的tutorial 所述。
但是在编译的时候出现如下错误:
|Packaging Grails application
....
|Compiling 251 source files
Adding tenantId field to class grails.plugins.crm.core.CrmLookupEntity
.Error
|
Compilation error: startup failed:
C:\appMock\target\work\plugins\crm-core-2.0.0\src\groovy\grails\plugins\crm\core\ClosureDelegate.groovy: 33: [Static type checking] - Cannot statically compile constructor implicitly including non static elements from object initializers, properties or fields.
@ line 33, column 5.
@CompileStatic
^
C:\appMock\target\work\plugins\crm-core-2.0.0\src\groovy\grails\plugins\crm\core\ClosureToMap.groovy: 34: [Static type checking] - Cannot statically compile constructor implicitly including non static elements from object initializers, properties or fields.
@ line 34, column 5.
@CompileStatic
^
C:\appMock\target\work\plugins\crm-core-2.0.0\src\groovy\grails\plugins\crm\util\Graph.groovy: 98: [Static type checking] - Cannot return value of type java.util.Collection <grails.plugins.crm.util.Vertex> on method returning type java.util.List <Vertex>
@ line 98, column 9.
vList.findAll { Vertex v -> !eList.find { Edge e -> v == e.source } }
^
3 errors
Process finished with exit code 1
我无法参考为什么会出现这些错误。我尝试将插件的版本更改为旧版本并继续同样的错误。
我正在使用 Grails 2.3.7 和 Groovy 2.4.0 以及 Java JDK 1.7
【问题讨论】: