【问题标题】:GWT GXT and Maven - 'Unable to find type'GWT GXT 和 Maven - '无法找到类型'
【发布时间】: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>

有什么想法吗?

【问题讨论】:

    标签: gwt maven gxt


    【解决方案1】:

    我在使用 gwt-maven-plugin 2.4.0 时也遇到了一些问题。唯一对我有用的解决方案是降级到 2.2.0 版。

    【讨论】:

      猜你喜欢
      • 2013-01-13
      • 2021-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-31
      相关资源
      最近更新 更多