我有一个使用 vaadin 插件和 gradle 配置的 spring-vaadin 项目。将 V-Leaflet 添加到我的项目中第一次工作,但后来它坏了,widgetset 再也没有编译过。编译失败,报告找不到杰克逊:
:vaadinPluginVersionCheck SKIPPED
:compileJava
:vaadinUpdateWidgetset
:processResources UP-TO-DATE
:classes
:vaadinClassPathJar UP-TO-DATE
:vaadinCompile
Errors in 'org/vaadin/addon/leaflet/shared/Point.java'
Line 37: JsonValue cannot be resolved to a type
Line 3: The import com.fasterxml cannot be resolved
Aborting compile due to errors in some input files
FAILED
这是 gradle 依赖项部分中的相关部分:
compile 'com.fasterxml.jackson.core:jackson-core:2.9.7'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.7'
vaadinCompile 'org.peimari:g-leaflet:+' //For v-leaflet
compile 'org.vaadin.addon:v-leaflet:+' //For map fields
我已经尝试过使用 vaadinCompile,对它们进行编译和实现。