Thursday, October 4, 2018

Re: gwt-maven-plugin: how can I chnage the Jetty port?

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.

On Thursday, February 23, 2017 at 6:21:51 AM UTC-5, Thomas Broyer wrote:


On Thursday, February 23, 2017 at 12:19:02 PM UTC+1, Tom Pijl wrote:
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 to pass the -port argument:
<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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment