diff --git a/project/index.html b/project/index.html
index 4045f1002c..69beb50485 100644
--- a/project/index.html
+++ b/project/index.html
@@ -15,7 +15,10 @@
-
+
+
+
+
diff --git a/project/static/checkCesium.js b/project/static/checkCesium.js
new file mode 100644
index 0000000000..1988b94e6c
--- /dev/null
+++ b/project/static/checkCesium.js
@@ -0,0 +1,7 @@
+var existsFile = require('exists-file');
+
+var exists = existsFile('./libs/Cesium/Build/Cesium/Cesium.js');
+if (!exists) {
+ process.exit(0);
+}
+process.exit(1);
\ No newline at end of file
diff --git a/project/web/pom.xml b/project/web/pom.xml
index 28c2792f6a..40652b8966 100644
--- a/project/web/pom.xml
+++ b/project/web/pom.xml
@@ -59,7 +59,33 @@
__PROJECTNAME__
-
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+ 1.6
+
+
+ download-files
+ compile
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
maven-resources-plugin
2.6
@@ -166,6 +192,38 @@
+
+ CesiumJS
+ process-classes
+
+ copy-resources
+
+
+ ${basedir}/target/__PROJECTNAME__/libs/Cesium
+ UTF-8
+
+
+ ${basedir}/libs/Cesium
+
+
+
+
+
+ CesiumJS-navigation
+ process-classes
+
+ copy-resources
+
+
+ ${basedir}/target/__PROJECTNAME__/libs/cesium-navigation
+ UTF-8
+
+
+ ${basedir}/../MapStore2/web/client/libs/cesium-navigation
+
+
+
+
diff --git a/projectScripts.json b/projectScripts.json
index 3d20e41412..ab199b7c90 100644
--- a/projectScripts.json
+++ b/projectScripts.json
@@ -2,6 +2,7 @@
"clean": "rimraf dist",
"compile": "npm run clean && mkdirp ./dist && webpack --config prod-webpack.config.js",
"start": "webpack-dev-server --progress --colors --port 8081 --hot --inline --content-base .",
+ "postinstall": "node checkCesium.js && mkdirp ./libs/Cesium && download --extract --out ./libs/Cesium https://cesiumjs.org/releases/Cesium-1.17.zip || echo Cesium already installed",
"test": "karma start ./karma.conf.single-run.js",
"continuoustest": "karma start ./karma.conf.continuous-test.js",
"mvntest": "karma start ./karma.conf.single-run.js --reporters junit,dots,coverage",