GWT 2.7 + GAE app looks for codeserver when deployed

孤街浪徒 提交于 2019-11-30 20:04:00

gwt:compile tries to work "incrementally" by comparing the timestamp of the nocache.js file with the ones of the source files, and skipping GWT compilation if it thinks the output is up-to-date. This is brittle though. gwt:run (without <superDevMode>false</superDevMode>; and gwt:run-codeserver with launcherDir) will overwrite the nocache.js with a SuperDevMode-specific version, and this is likely to lead to gwt:compile skipping the compilation.

The takeaway is: when deploying or "releasing", make sure you first run mvn clean or force gwt:compile to run by passing -Dgwt.compiler.force to Maven.

Just for information, I had the same problem, caused by the usage of a non-standard project structure.

Maven was copying the .nocache files in a directory different than /target/which prevented the clean plugin from cleaning the generated files.

Adding a new with the directory where the files are copied solves the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!