Discussion:
gwt-maven-plugin: how can I chnage the Jetty port?
Tom Pijl
2017-02-23 10:35:36 UTC
Permalink
I am using the gwt-maven-plug of Thomas Broyer.
I would like to change the Jetty server port from (default) 8888 to e.g.
4200 when running mvn gwt:devmode.
Any pointers on how to configure that?
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Thomas Broyer
2017-02-23 11:21:51 UTC
Permalink
Post by Tom Pijl
I am using the gwt-maven-plug of Thomas Broyer.
I would like to change the Jetty server port from (default) 8888 to e.g.
4200 when running mvn gwt:devmode.
Any pointers on how to configure that?
You'd use devmodeArgs
<https://tbroyer.github.io/gwt-maven-plugin/devmode-mojo.html#devmodeArgs>
to pass the -port argument
<http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode>
:
<devmodeArgs>
<arg>-port</arg><arg>4200</arg>
</devmodeArgs>
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Thad Humphries
2018-10-04 21:53:59 UTC
Permalink
Where? Sorry, I'm getting fed up with Gradle, and I'm trying to remember
how to do this in Maven
Post by Thomas Broyer
Post by Tom Pijl
I am using the gwt-maven-plug of Thomas Broyer.
I would like to change the Jetty server port from (default) 8888 to e.g.
4200 when running mvn gwt:devmode.
Any pointers on how to configure that?
You'd use devmodeArgs
<https://tbroyer.github.io/gwt-maven-plugin/devmode-mojo.html#devmodeArgs>
to pass the -port argument
<http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode>
<devmodeArgs>
<arg>-port</arg><arg>4200</arg>
</devmodeArgs>
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Thad Humphries
2018-10-04 22:08:56 UTC
Permalink
Where does this go? Which pom.xml? Sorry, I'm looking at returning to Maven
because of the lack of Gradle support and their dizzying rate of updates.

So, I've generated a modular-webapp, I tried

<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-9</version>
<extensions>true</extensions>
<configuration>
<sourceLevel>1.8</sourceLevel>
<failOnError>true</failOnError>
<devmodeArgs>
<arg>-port</arg><arg>8888</arg>
</devmodeArgs>
</configuration>
</plugin>


in the top-level pom.xm. Port 8888 is open, but I still get

[ERROR] Failed to execute goal
org.eclipse.jetty:jetty-maven-plugin:9.4.8.v20171121:run (default-cli) on
project web8-server: Failure: Address already in use


I've tried other places, but I'm out of ideas.
Post by Thomas Broyer
Post by Tom Pijl
I am using the gwt-maven-plug of Thomas Broyer.
I would like to change the Jetty server port from (default) 8888 to e.g.
4200 when running mvn gwt:devmode.
Any pointers on how to configure that?
You'd use devmodeArgs
<https://tbroyer.github.io/gwt-maven-plugin/devmode-mojo.html#devmodeArgs>
to pass the -port argument
<http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode>
<devmodeArgs>
<arg>-port</arg><arg>4200</arg>
</devmodeArgs>
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Thomas Broyer
2018-10-05 07:10:26 UTC
Permalink
GWT with Gradle is only a couple adhoc tasks away, so no need to change build tool because plugins are lacking.

Back to Maven, the archetype doesn't use the embedded jetty in DevMode, so you need to configure the port in the jetty plugin (there has been an issue on that exact matter a few days ago, go check it out, I had put links to the jetty-maven-plugin docs and a configuration snippet).
You would use codeserverArgs on the root POM to configure the CodeServer port if you'd want to change it.
devmodeArgs is for "mvn gwt:devmode" which you won't use here.


but as I said above, I'd stay with Gradle and replace the plugin with two adhoc JavaExec tasks for compilation and CodeServer/DevMode, and possibly Gretty for launching a servlet container.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Pavlo Iatsiuk
2018-10-05 14:27:42 UTC
Permalink
GWT uses jetty, so try simple to all this property to command line
invocation "-Djetty.port=4200"
So your command should look like
mvn gwt:run -Djetty.port=4200
Post by Tom Pijl
I am using the gwt-maven-plug of Thomas Broyer.
I would like to change the Jetty server port from (default) 8888 to e.g.
4200 when running mvn gwt:devmode.
Any pointers on how to configure that?
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...