gwtgwt-super-dev-modegwt-maven-plugin

How enable production mode in GWT 2.7 application


I would like to deploy my GWT 2.7 application on my server through gwt-maven-plugin and jenkins. But, after compile process, when I launch my application, I've this error message :

Couldn't load APPLICATION_NAME from Super Dev Mode server at http://MY_IP:9876. Please make sure this server is ready.

Indeed, the super dev mode is enabled by default since 2.7. So, how disable it to use production mode ?


Solution

  • Ok thank you very much for your comment. Indeed, my problem concerned the *.nocache.js and *.devmode.js files. I started my project (my first one in GWT) in 2.6 version and these files were created (by dev and super-dev-mode) and versionned by my fault. So, when my jenkins deployed my project, it used these files so even if I did mvn clean before deploy it had no effect.

    So, I removed these files from my project and I did a mvn clean install before deploy to fix my issue.