Problem Compiling GWT on IntelliJ

I created a Vaadin 7 project using maven and everything was working fine If I try to compile the GWT with maven. But when I tried to perform the compilation on IntelliJ 13 I got a GWT Error. I don’t know why that was happening but the solution was importing gwt-dev.jar to my project.