Building and deploying


Maven is the main tool for building and deploying a complete application. It takes care of:

To create the final war, you have several options:

mvn clean install -Dmapstore2.version=[version_identifier]

Building the documentation

MapStore2 uses JSDoc to annotate the components, so the documentation can be automatically generated using docma.
Please see http://usejsdoc.org/ for further information about code documentation.

Refer to the existing files to follow the documentation style:

To install docma:

npm install -g docma

While developing you can generate the documentation to be accessible in the local machine by:

npm run doctest

The resulting doc will be accessible from http://localhost:8081/mapstore/docs/

For the production deploy a different npm task must be used:

npm run doc

The documentation will be accessible from the /mapstore/docs/ path

The generated folders can be removed with:

npm run cleandoc