1 Reply Latest reply on May 12, 2010 3:27 AM by Lukas Vlcek

    IntelliJ IDEA Errai setup

    Lukas Vlcek Newbie

      Hello,

       

      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?