Skip to content

Commit

Permalink
Add configuration for using gwt:devmode, and note in README
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed Feb 11, 2024
1 parent eb5af43 commit 5b24f92
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ Change directory to your generated project and issue the following commands:
Note that the `-pl` and `-am` are not strictly necessary, they just tell Maven not to
build the client module when you're dealing with the server one, and vice versa.

On Windows, where a <kbd>Ctrl</kbd>+<kbd>C</kbd> would kill the Maven process but not
the CodeServer process, or similarly in Eclipse when terminating a launch from the
process console (see [known issue](https://github.com/tbroyer/gwt-maven-plugin/issues/110)),
one may prefer using `gwt:devmode` rather than `gwt:codeserver`: this opens a window
that can be closed to stop the process.


### Profiles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<inherited>false</inherited>
<configuration>
<launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
<!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
<warDir>${project.build.directory}/gwt/launcherDir</warDir>
<devmodeArgs>
<arg>-noserver</arg>
</devmodeArgs>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<inherited>false</inherited>
<configuration>
<launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
<!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
<warDir>${project.build.directory}/gwt/launcherDir</warDir>
<devmodeArgs>
<arg>-noserver</arg>
</devmodeArgs>
</configuration>
</plugin>
</plugins>
Expand Down
5 changes: 5 additions & 0 deletions modular-webapp/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<inherited>false</inherited>
<configuration>
<launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
<!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
<warDir>${project.build.directory}/gwt/launcherDir</warDir>
<devmodeArgs>
<arg>-noserver</arg>
</devmodeArgs>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<inherited>false</inherited>
<configuration>
<launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
<!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
<warDir>${project.build.directory}/gwt/launcherDir</warDir>
<devmodeArgs>
<arg>-noserver</arg>
</devmodeArgs>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 5b24f92

Please sign in to comment.