【发布时间】:2011-12-19 16:04:59
【问题描述】:
使用 gxt 和 maven。我可以让我的项目编译和构建一个战争文件。但每次我尝试使用 codehaus gwt-maven-plugin 插件 (gwt:run) 运行它时,我都会得到:
Finding entry point classes
[ERROR] Unable to find type 'com.vetrado.admin.GxtProjectA
这是入口点类。此类已编译并位于类路径中。但是阅读 GWT 文档,它说源代码也应该在类路径上,以便 GWT 可以将其编译为 javascript(有意义)。
问题是,如何把源码放在gwt-maven-plugin插件的classpath上?
<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>
有什么想法吗?
【问题讨论】: