[英]Running a Modular GWT in DevMode
最近,我修改了我的GWT应用程序,从使用maven原型modular-webapp( https://github.com/tbroyer/gwt-maven-archetypes )将单个项目更改为模块化项目。 尽管使用SuperDevMode时一切正常,但我无法让旧的DevMode与新结构一起使用。 我想再次将项目与旧的DevMode一起使用,因为我对eclipse中的调试更加熟悉。
我按照howto提供的关于模块化Webapp原型的步骤进行操作:
尽管在步骤2中发出警告,但所有步骤似乎都成功了:
[WARNING] Your POM <build><outputdirectory> does not match your hosted webapp WEB-INF/classes folder for GWT Hosted browser to see your classes.
但是,当我从GWT窗口打开浏览器时,只得到一个空白页。 因此,也许gwt-maven-plugin配置有问题:
<properties>
<gwt.genParam>false</gwt.genParam>
<!-- keep in sync with *-server -->
<runTarget>http://localhost:8080</runTarget>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<module>testproject.Project</module>
<strict>true</strict>
<genParam>${gwt.genParam}</genParam>
<noserver>true</noserver>
<runTarget>${runTarget}</runTarget>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingExcludes>WEB-INF/**</packagingExcludes>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
浏览器找不到nocache.js,这是由Maven配置文件的参数中的错字引起的。 我使用-PDev而不是-Pdev。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.