PageRenderTime 36ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/en/maintenance/compile.rst

https://github.com/geosolutions-it/crop-information-portal
ReStructuredText | 131 lines | 96 code | 35 blank | 0 comment | 0 complexity | 3c10a0a58325b3553877989270f2a68b MD5 | raw file
  1. .. module:: cippak.maintenance.compile
  2. :synopsis: Learn how to compile the platform.
  3. .. cippak.maintenance.compile:
  4. =======
  5. Compile
  6. =======
  7. In this section we're going to learn how to compile different parts of the application. The source code is available on Github repository:
  8. * https://github.com/geosolutions-it/crop-information-portal
  9. Please, follow the instructions in the link before continue.
  10. The code of the project is divided in three different applications:
  11. * OpenSDI-Manager
  12. * GeoBatch
  13. * MapStore
  14. OpenSDI-Manager and GeoBatch costumizations use Maven to compile it and MapStore uses Ant.
  15. OpenSDI-Manager
  16. ---------------
  17. To compile the OpenSDI-Manager application::
  18. crop-information-portal/OpenSDI-Manager/admin$ mvn clean install -Dmaven.test.skip
  19. ...
  20. [INFO] Reactor Summary:
  21. [INFO]
  22. [INFO] OpenSDI-Manager Portal ............................ SUCCESS [0.489s]
  23. [INFO] OpenSDI Manager - Test core ....................... SUCCESS [2.008s]
  24. [INFO] OpenSDI Manager - core ............................ SUCCESS [3.558s]
  25. [INFO] OpenSDI Manager - Admin Webapp .................... SUCCESS [2.577s]
  26. [INFO] OpenSDI Manager - Log operation ................... SUCCESS [0.041s]
  27. [INFO] OpenSDI Manager - Log operation - core ............ SUCCESS [0.676s]
  28. [INFO] OpenSDI Manager - Log operation - web extension ... SUCCESS [4.435s]
  29. [INFO] SHP file browser - OpenSDI-Manager extension ...... SUCCESS [4.362s]
  30. [INFO] OpenSDI Manager - Crop Information Portal ......... SUCCESS [0.082s]
  31. [INFO] OpenSDI Manager - Crop Information Portal - core .. SUCCESS [1.093s]
  32. [INFO] OpenSDI Manager - Crop Information Portal - MVC extension SUCCESS [1.053s]
  33. [INFO] OpenSDI Manager - Crop Information Portal - webapp extension SUCCESS [4.636s]
  34. [INFO] OpenSDI Manager - Destination ..................... SUCCESS [0.167s]
  35. [INFO] OpenSDI Manager - Destination - core .............. SUCCESS [0.956s]
  36. [INFO] OpenSDI Manager - Destination - web extension ..... SUCCESS [8.330s]
  37. [INFO] ------------------------------------------------------------------------
  38. [INFO] BUILD SUCCESS
  39. [INFO] ------------------------------------------------------------------------
  40. [INFO] Total time: 35.109s
  41. [INFO] Finished at: Fri Jan 10 16:20:45 CET 2014
  42. [INFO] Final Memory: 52M/147M
  43. crop-information-portal/OpenSDI-Manager/admin$
  44. Now you have a ``admin`` application to be deployed on `crop-information-portal/OpenSDI-Manager/admin/nrl-modules/nrl-web-extension/target/admin.war`.
  45. You can deploy it on your web container and change the configuration as you need. Please, read the `Configuration of the Administration Interface training <../admin/conf/admin/configuration.html>`_
  46. GeoBatch
  47. --------
  48. To compile the GeoBatch application::
  49. crop-information-portal/OpenSDI-Manager/geobatch$ mvn clean install -Dmaven.test.skip
  50. ...
  51. [INFO] Reactor Summary:
  52. [INFO]
  53. [INFO] NRL GeoBatch Root ................................. SUCCESS [7.362s]
  54. [INFO] GeoBatch action: CSV ingest ....................... SUCCESS [12.779s]
  55. [INFO] GeoBatch action: NDVI preparation ................. SUCCESS [17.881s]
  56. [INFO] GeoBatch action: NDVI stats generation ............ SUCCESS [7.814s]
  57. [INFO] NRL GeoBatch webapp ............................... SUCCESS [21.242s]
  58. [INFO] ------------------------------------------------------------------------
  59. [INFO] BUILD SUCCESS
  60. [INFO] ------------------------------------------------------------------------
  61. [INFO] Total time: 1:08.150s
  62. [INFO] Finished at: Wed Jan 15 17:58:24 CET 2014
  63. [INFO] Final Memory: 32M/97M
  64. [INFO] ------------------------------------------------------------------------
  65. crop-information-portal/OpenSDI-Manager/geobatch$
  66. Now you have a ``GeoBatch`` application to be deployed on `crop-information-portal/OpenSDI-Manager/geobatch/webapp/target/geobatch.war`.
  67. You can deploy it on your web container and change the configuration as you need. Please, read the `GeoBatch configuration training <../admin/conf/geobatch/index.html>`_
  68. Mapstore
  69. --------
  70. To compile the MapStore application:
  71. 1. **Init**: Download dependencies and build ringo jars::
  72. crop-information-portal/mapstore$ ant init
  73. Buildfile: crop-information-portal/mapstore/build.xml
  74. init:
  75. [echo] building ringo jars
  76. init:
  77. compile:
  78. [mkdir] Created dir: crop-information-portal/mapstore/externals/ringojs/build/classes
  79. [javac] Compiling 52 source files to crop-information-portal/mapstore/externals/ringojs/build/classes
  80. jar:
  81. [jar] Building jar: crop-information-portal/mapstore/externals/ringojs/lib/ringo.jar
  82. [jar] Building jar: crop-information-portal/mapstore/externals/ringojs/run.jar
  83. BUILD SUCCESSFUL
  84. Total time: 2 seconds
  85. crop-information-portal/mapstore$
  86. 2. **Package**: Compile an package it into a war::
  87. crop-information-portal/mapstore$ ant war
  88. ...
  89. war:
  90. [war] Building war: crop-information-portal/mapstore/mapcomposer/build/mapcomposer.war
  91. [war] Building war: crop-information-portal/mapstore/mapmanager/build/mapstore.war
  92. BUILD SUCCESSFUL
  93. Total time: 24 seconds
  94. crop-information-portal/mapstore$
  95. Now you have a ``MapStore`` application to be deployed on `crop-information-portal/mapstore/mapcomposer/build/mapcomposer.war`.
  96. You can deploy it on your web container and change the configuration as you need. Please, read the `MapStore Configuration training <../admin/conf/mapstore/configuration.html>`_