Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change default port 8080 maven gae goal appengine:devserver

I'm having a problem, probably is quite simple but I did not find the solution yet.

I'm trying to launch my local GAE server (through Run-configurations of Eclipse) on a specific port (8888 in my case) but it starts only at default port 8080 and after trying with different options ... I'm not lucky

Any ideas?

like image 588
hector.mateos Avatar asked Apr 16 '14 08:04

hector.mateos


2 Answers

Run this from the cmd line: mvn help:describe -Dcmd=appengine:devserver -Ddetail - you'll see all the available options for appengine:devserver goal.

The one that you want is:

mvn appengine:devserver -Dappengine.port=8888

like image 96
alex Avatar answered Oct 02 '22 14:10

alex


The Google Plugin for eclipse (GPE) allows you to specify the port number on the second tab ('Server') in a run configuration.

If you're not using that (which you probably should be) you can configure the port in your pom directly like this:

<plugin>
    <groupId>com.google.appengine</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>${gae.version}</version>
    <configuration>
        <port>8080</port>
        <address>0.0.0.0</address>
    </configuration>
</plugin>
like image 20
Nick Avatar answered Oct 02 '22 14:10

Nick