To run or debug the server side part of MapStore we suggest to use jetty:run plugin. This guide explains how to do it with Eclipse. This procedure is tested with Eclipse Luna.
you can simply run the server side part using mvn jetty:run
command. To run the server side part only, run:
mvn jetty:run -Pserveronly
This will skip the javascript building phase, you can now connect the webpack proxy to the server side proxy and debug client side part using:
npm start
Set the maven options as following :
# Linux
MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
# Windows
set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
then run jetty
mvn jetty:run -Pserveronly
mvn eclipse:eclipse
NOTE With some version of eclipse you will have to set
suspend=y
in mvn options to make it work. In this case the server will wait for the debug connection at port 4000 (address=4000
)