<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <modelVersion>4.0.0</modelVersion> <groupId>com.mydomain</groupId> <artifactId>MyApp</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>MyApp</name>
<properties> <!-- Artifact versions --> <gwt.version>2.7.0</gwt.version>
<!-- Maven GWT compiler version and parameters --> <maven.compiler.version>3.3</maven.compiler.version> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <compiler.style>OBF</compiler.style> <compiler.log.level>INFO</compiler.log.level> <glassfish.port>8000</glassfish.port> </properties>
<dependencies> <!-- Core: GWT --> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwt.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> <scope>provided</scope> </dependency> </dependencies>
<build>
<finalName>MyApp</finalName>
<!-- Make sure classes output dir matches hosted webapp WEB-INF/classes folder, so GWT Hosted browser can see the classes. --> <directory>target</directory> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- Plugin to compile GWT Java code to JavaScript. Usage: mvn gwt:compile , mvn gwt:run --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>${gwt.version}</version>
<executions> <execution> <goals> <goal>compile</goal> <goal>generateAsync</goal> <goal>test</goal> </goals> </execution> </executions>
<configuration> <!-- Compiler parameters --> <extraJvmArgs>-Xss1024K -Xmx1024M</extraJvmArgs> <draftCompile>true</draftCompile> <debugSuspend>false</debugSuspend> <logLevel>${compiler.log.level}</logLevel> <style>${compiler.style}</style> <!-- Launch parameters with external server --> <!-- Add the app to Glassfish embedded server and set the server to publsh automatically after each compile --> <noServer>true</noServer> <runTarget>http://localhost:${glassfish.port}/${project.build.finalName}/${project.build.finalName}.html</runTarget> <!-- Build parameters --> <buildOutputDirectory>${project.build.outputDirectory}</buildOutputDirectory> <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp> <copyWebapp>true</copyWebapp>
</configuration> </plugin> </plugins> </build>
</project>
And I'm sorry if I haven't been very clear, but I know I am running the code server, because I can hit F5 after a change in the code is made, and a recompile will be triggered, resulting in Glassfish republishing all the files that were changed. F5 "refresh" works as expected, allowing me to run the updated code.
In the end, I think I am doing the same thing that is accomplished when using the Web Application run configuration (your second step), but with the gwt-maven-plugin. The only problem is that after 1) creating the Launch Chrome configuration (as instructed in your video), 2) running Glassfish and 3) running the Launch chrome configuration, SDBG don't seem to work, and my break points aren't being hit.
I hope this is clearer now and you can provide some guidance on how to proceed.
Thanks!