使用gxt和maven。我可以让我的项目编译和构建一个war文件。但每当我尝试使用codehaus gwt-maven-plugin插件(gwt:run)运行它时,我得到:
Finding entry point classes
[ERROR] Unable to find type 'com.vetrado.admin.GxtProjectA
这是EntryPoint类。此类已编译并位于类路径中。但是阅读GWT文档它说源也应该在类路径上,所以GWT可以将它编译为javascript(make sence)。
问题是,如何将源放在gwt-maven-plugin
插件的类路径上?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>GxtProjectA.html</runTarget>
</configuration>
</plugin>
有什么想法吗?
答案 0 :(得分:0)
我也遇到过gwt-maven-plugin 2.4.0的一些问题。唯一能为我工作的解决方案是降级到2.2.0版本。