Cannot rebuild GWT application, Idea stops responding


Idea, version 11.1.1 Ultimate version.
I've created GWT application using maven plugin.
mvn -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.5.1 -DgroupId=com.savdev.BasicGwtProject -DartifactId=BasicGwtProject -Dversion=1.0 -Dmodule=NewGwtModule org.apache.maven.plugins:maven-archetype-plugin:generate

then created in IDEA new project, chose pom.xml.

Removed all files that are generated by maven plugin but are not needed.

via maven I can build the project:
maven clean
maven install

remove and create target folder with the content. It works fine.

When in IDEA I choose Build -> Make Project, the class files are also generated. But I need maven analogue of maven install.
I'm not  sure, but I try Build -> Rebuild Project.

It hangs. I only see:
Stopping make.
Compiling GWT module 'moduleName'

That's all.

Sorry, IDEA itself does not hang, I can continue work on the project, but the background task stops responding. When I try to close IDEA I get:
you have background tasks running. Are you sure you want to cancel them....?

Click Yes. Then Exit. Does not work. Cannot exit. Only whek kill the process in windows task manager.
Please help.

The main issue, how to build the whole GWT application - analogue of maven install command.
The second, how to resoluve the current problem.




GWT 2.5 was released after IDEA 11.1.1 so may be the problem is caused by changes in GWT which weren't supported in IDEA 11. Try to use the latest
version of IDEA (12.1.2).

Nikolay Chashnikov
Software Developer
JetBrains, Inc
"Develop with pleasure!"



Anyway, my main issue, how in IDEA to run the command which is an analogue to the "maven install" one for GWT application?
I suppose that even if the "rebuild project" will work it will not help me to build the whole war arhive and related files as the "maven install" does.

PS: can I ask questions on this forum in Russian?


Hello, Alexander,

use Build | Build Artifacts to build the war archive. IDEA should call GWT compiler and pack its output to the war.

Nikolay Chashnikov
Software Developer
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.