Change default port 8080 maven gae target appengine: devserver

I have a problem, maybe quite simple, but I haven't found a solution yet.

I am trying to start a local GAE server (via Run-configurations of Eclipse) on a specific port (in my case 8888), but it only starts by default by default 8080 and after trying with various parameters ... I'm out of luck

Any ideas?

+4
source share
4 answers

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

The one you want:

mvn appengine:devserver -Dappengine.port=8888

+10
source

What have you tried?

--port 8888 ?

0

Google eclipse (GPE) ( "" ) .

(, , ), :

<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>
0

: https://cloud.google.com/appengine/docs/standard/java/quickstart

, : https://cloud.google.com/appengine/docs/flexible/java/maven

<host> <address>

Docker:

<plugin>
  <groupId>com.google.cloud.tools</groupId>
  <artifactId>appengine-maven-plugin</artifactId>
  <version>1.3.2</version>
  <configuration>
    <enableJarClasses>false</enableJarClasses>
    <port>8080</port>
    <host>0.0.0.0</host>
    <admin_host>0.0.0.0</admin_host>
  </configuration>
</plugin>
0

Source: https://habr.com/ru/post/1536732/


All Articles