when imported sample application created by mvn archetype (http://download.jboss.org/errai/docs/1.0.0.GA/userguide/index.html#quickstart-intro) into IntelliJ IDEA I am missing war directory in project view (I can not access any files in war folder and the folder itself is not visible in project files).
I modyfied maven-war-plugin plugin setup in pom.xml:
<plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceDirectory>src/main/webapp</warSourceDirectory> <webappDirectory>war</webappDirectory> </configuration> </plugin>
and then also modified maven-antrun-plugin in the following way:
<execution> <id>clean.war</id> <phase>clean</phase> <configuration> <tasks> <delete dir="war" /> <delete dir="target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution>
Now this seems to fix my problems with IDEA and both mvn package and mvn gwt:run work as expected. Does anybody have any experience with errai and IDEA setup? Do you use different setup?
It seems that IDEA 8 and 9 handle this situation differently. I had to use my updated settings in IDEA 8 whereas IDEA 9 seems to handle the original errai mvn setup correctly and I can see the war folder in project window. Hmm....