You can set the port of each module using the JVM options.
-Dcom.google.appengine.devappserver_module.{module_name}.port=8081
I use appengine-maven-plugin with the following configuration (my custom module is called "analysis"):
<plugin> <groupId>com.google.appengine</groupId> <artifactId>appengine-maven-plugin</artifactId> <configuration> <jvmFlags> <jvmFlag>-Ddatastore.backing_store=${project.basedir}/target/local_db.bin</jvmFlag> <jvmFlag>-Xdebug</jvmFlag> <jvmFlag>-Dcom.google.appengine.devappserver_module.analysis.port=8081</jvmFlag> <jvmFlag>-XX:MaxPermSize=512m</jvmFlag> <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n</jvmFlag> </jvmFlags> <enhancerApi>JPA</enhancerApi> <fullScanSeconds>2</fullScanSeconds> </configuration> </plugin>
When I run mvn appengine: devserver, then the logs corresponding to this module look like this:
[INFO] INFO: Started SelectChannelConnector@127.0.0.1:8081 [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.JettyContainerService startHotDeployScanner [INFO] INFO: Full scan of the web app in place every 2s. [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.AbstractModule startup [INFO] INFO: Module instance analysis is running at http://localhost:8081/ [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.AbstractModule startup [INFO] INFO: The admin console is running at http://localhost:8081/_ah/admin [INFO] Jun 10, 2014 11:44:16 AM com.google.appengine.tools.development.DevAppServerImpl doStart [INFO] INFO: Dev App Server is now running
I hope this helps.
nomukaiki
source share