在项目源或资源中找不到GWT模块XXX
我使用Maven目标:vaadin:update-widgetset-gwt:compile编译了widgetset。因此pom.xml和web.xml文件的配置应该可以 我是一个Maven新手,这是我的第一个Maven项目 编译后,编译后的代码显示在src/main/webapp/VAADIN/widgetsets文件夹中。当我尝试运行安装目标时,错误显示: 未能在project Validation Manager Web上执行目标org.codehaus.mojo:gwt maven插件:2.2.0:resources(默认):gwt Module com.pantar.widget.graph.GraphWidget在项目源或资源中找不到 以防万一,以下是相关文件: POM:在项目源或资源中找不到GWT模块XXX,gwt,maven,compilation,vaadin,Gwt,Maven,Compilation,Vaadin,我使用Maven目标:vaadin:update-widgetset-gwt:compile编译了widgetset。因此pom.xml和web.xml文件的配置应该可以 我是一个Maven新手,这是我的第一个Maven项目 编译后,编译后的代码显示在src/main/webapp/VAADIN/widgetsets文件夹中。当我尝试运行安装目标时,错误显示: 未能在project Validation Manager Web上执行目标org.codehaus.mojo:gwt maven插件:
<plugins>
<!-- Compiles your custom GWT components with the GWT compiler -->
<!-- A hosted mode browser for client-side widget debugging can be run with the goal gwt:run after uncommenting the
correct line below. A remote debugger can then be connected to port 8998. Note that e.g. a Jetty server should be running
with the server side parts - use the goal jetty:run . -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.plugin.version}</version>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
<modules>
<module>com.pantar.widget.graph.GraphWidget</module>
</modules>
<webappDirectory>src/main/webapp/VAADIN/widgetsets</webappDirectory>
<!-- On Mac running Snow Leopard, add "-d32" -->
<!-- This causes error messages (but build works) in phase "package": two processes would use the same debug
port -->
<!--extraJvmArgs>-Xmx512M -Xss1024k -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8998</extraJvmArgs -->
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<runTarget>Validation-Manager-Web</runTarget>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<noServer>true</noServer>
<port>8084</port>
<compileReport>false</compileReport>
</configuration>
<executions>
<execution>
<goals>
<goal>resources</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>1.0.2</version>
<executions>
<execution>
<configuration>
<modules>
<module>com.pantar.widget.graph.GraphWidget</module>
</modules>
</configuration>
<goals>
<goal>update-widgetset</goal>
</goals>
</execution>
</executions>
</plugin>
org.codehaus.mojo
GWTMaven插件
${gwt.plugin.version}
com.pantar.widget.graph.GraphWidget
src/main/webapp/VAADIN/widgetsets
-Xmx512M-Xss1024k
验证管理器Web
${project.build.directory}/${project.build.finalName}
真的
8084
假的
资源
编译
com.google.gwt
gwt开发
${gwt.version}
com.google.gwt
gwt用户
${gwt.version}
com.vaadin
vaadin maven插件
1.0.2
com.pantar.widget.graph.GraphWidget
更新WidgeSet
有什么想法吗
提前谢谢 通过添加一个包含以下内容的空gwt.xml文件修复了此问题:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
<inherits name="<module>" />
</module>
我一直在考虑这个问题,我想我需要将这些文件放在resources文件夹中。我明天早上试试。可惜没能成功。真的吗?继承标记在您的案例中有效吗?我只是从MavenYes那里得到了解析异常,是的。请记住,有些东西看起来不对劲,好像在发帖的时候应该是格式上的东西。