I could configure the IntelliJ debugger to work correctly with maven. This is what I did:
This is pom.xml:
<dependencyManagement> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt</artifactId> <version>2.7.0-SNAPSHOT</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencys> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-codeserver</artifactId> <scope>provided</scope> </dependency> </dependencys> <build> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> <finalName>rap-maven-1.0</finalName> <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>2.7.0-SNAPSHOT</version> <configuration> <logLevel>INFO</logLevel> <style>${gwt.style}</style> <compileReport>true</compileReport> <hostedWebapp>${webappDirectory}</hostedWebapp> <runTarget>index.html</runTarget> <module>Project</module> </configuration> <executions> <execution> <goals> <goal>compile</goal> <goal>generateAsync</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <executions> <execution> <phase>compile</phase> <goals> <goal>exploded</goal> </goals> </execution> </executions> <configuration> <webappDirectory>${webappDirectory}</webappDirectory> </configuration> </plugin> </plugins>
Create an IntelliJ startup / debug configuration. In my case, my module name is rap-maven and my starting web page is test.html

- As I configured gwt-maven-plugin and maven-war-plugin, in the package phase they generate an exploded directory in target \ rap-maven-1.0 and the gwt module executed in target \ rap-maven-1.0 \ project , so you need to configure the structure project as shown:
In GWT Facet, OutputRelativePath should be /target/rap-maven-1.0/project :

And in Web Facet, the web resource directory should be in C: \ Proyectos \ Vulcano \ RAP \ rap-maven \ target \ rap-maven-1.0 :

Script link in test.html file
<script type="text/javascript" language="javascript" src="project/project.nocache.js"></script>
Hope this can be helpful.
source share