pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <artifactId>ov-secure-data-manager</artifactId>
  5. <groupId>com.scytl.products.ov.sdm</groupId>
  6. <version>2.1.6</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>secure-data-manager-packaging</artifactId>
  10. <name>Secure Data Manager Packaging</name>
  11. <packaging>pom</packaging>
  12. <properties>
  13. <jce.version>8</jce.version>
  14. <scytl-gmp.version>6.1.1</scytl-gmp.version>
  15. </properties>
  16. <dependencyManagement>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.scytl.products.ov.sdm.ui</groupId>
  20. <artifactId>sdm-ws-rest</artifactId>
  21. <version>${project.version}</version>
  22. <type>jar</type>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.scytl.products.ov.sdm.frontend</groupId>
  26. <artifactId>ov-sdm-frontend</artifactId>
  27. <version>${project.version}</version>
  28. <type>pom</type>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.scytl.products.ov.sdm</groupId>
  32. <artifactId>sdm-db-utils</artifactId>
  33. <version>${project.version}</version>
  34. <type>pom</type>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.scytl.products.ov</groupId>
  38. <artifactId>mixnet-webapp</artifactId>
  39. <version>${project.version}</version>
  40. <type>war</type>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.bouncycastle</groupId>
  44. <artifactId>bcprov-jdk15on</artifactId>
  45. <version>${bouncycastle.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.oracle</groupId>
  49. <artifactId>UnlimitedJCEPolicy</artifactId>
  50. <version>${jce.version}</version>
  51. <type>zip</type>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.scytl.math</groupId>
  55. <artifactId>scytl-math</artifactId>
  56. <version>${scytl-math.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.scytl.math</groupId>
  60. <artifactId>scytl-math-native</artifactId>
  61. <version>${scytl-math.version}</version>
  62. <type>nar</type>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.scytl.gmp</groupId>
  66. <artifactId>scytl-gmp</artifactId>
  67. <version>${scytl-gmp.version}</version>
  68. <type>nar</type>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.scytl.products.ov</groupId>
  72. <artifactId>config-webapp</artifactId>
  73. <version>${project.version}</version>
  74. <type>war</type>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.scytl.products.ov</groupId>
  78. <artifactId>config-engine</artifactId>
  79. <version>${project.version}</version>
  80. <type>jar</type>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.scytl.products.ov</groupId>
  84. <artifactId>tallying-webapp</artifactId>
  85. <version>${project.version}</version>
  86. <type>war</type>
  87. </dependency>
  88. </dependencies>
  89. </dependencyManagement>
  90. <dependencies>
  91. <dependency>
  92. <groupId>com.scytl.products.ov.sdm.ui</groupId>
  93. <artifactId>sdm-ws-rest</artifactId>
  94. <type>jar</type>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.scytl.products.ov.sdm.frontend</groupId>
  98. <artifactId>ov-sdm-frontend</artifactId>
  99. <type>pom</type>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.scytl.products.ov.sdm</groupId>
  103. <artifactId>sdm-db-utils</artifactId>
  104. <type>pom</type>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.scytl.products.ov</groupId>
  108. <artifactId>mixnet-webapp</artifactId>
  109. <type>war</type>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.bouncycastle</groupId>
  113. <artifactId>bcprov-jdk15on</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.oracle</groupId>
  117. <artifactId>UnlimitedJCEPolicy</artifactId>
  118. <type>zip</type>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.scytl.math</groupId>
  122. <artifactId>scytl-math</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.scytl.math</groupId>
  126. <artifactId>scytl-math-native</artifactId>
  127. <type>nar</type>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.scytl.gmp</groupId>
  131. <artifactId>scytl-gmp</artifactId>
  132. <type>nar</type>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.scytl.products.ov</groupId>
  136. <artifactId>config-webapp</artifactId>
  137. <type>war</type>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.scytl.products.ov</groupId>
  141. <artifactId>config-engine</artifactId>
  142. <type>jar</type>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.scytl.products.ov</groupId>
  146. <artifactId>tallying-webapp</artifactId>
  147. <type>war</type>
  148. </dependency>
  149. </dependencies>
  150. <build>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-dependency-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>copy</id>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>copy</goal>
  161. </goals>
  162. <configuration>
  163. <artifactItems>
  164. <artifactItem>
  165. <groupId>com.scytl.products.ov.sdm.ui</groupId>
  166. <artifactId>sdm-ws-rest</artifactId>
  167. <type>jar</type>
  168. <outputDirectory>${project.build.directory}/install/sdm/</outputDirectory>
  169. <destFileName>sdm-ws-rest.jar</destFileName>
  170. </artifactItem>
  171. <artifactItem>
  172. <groupId>org.bouncycastle</groupId>
  173. <artifactId>bcprov-jdk15on</artifactId>
  174. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  175. <destFileName>bcprov-jdk15on.jar</destFileName>
  176. </artifactItem>
  177. <artifactItem>
  178. <groupId>com.scytl.math</groupId>
  179. <artifactId>scytl-math</artifactId>
  180. <outputDirectory>${project.build.directory}/install/scytl-math</outputDirectory>
  181. </artifactItem>
  182. <artifactItem>
  183. <groupId>com.oracle</groupId>
  184. <artifactId>UnlimitedJCEPolicy</artifactId>
  185. <type>zip</type>
  186. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  187. </artifactItem>
  188. <artifactItem>
  189. <groupId>com.scytl.products.ov</groupId>
  190. <artifactId>config-webapp</artifactId>
  191. <type>war</type>
  192. <outputDirectory>${project.build.directory}/install/webapps/</outputDirectory>
  193. <destFileName>config-generator.war</destFileName>
  194. </artifactItem>
  195. <artifactItem>
  196. <groupId>com.scytl.products.ov</groupId>
  197. <artifactId>mixnet-webapp</artifactId>
  198. <type>war</type>
  199. <outputDirectory>${project.build.directory}/install/webapps/</outputDirectory>
  200. <destFileName>mixing.war</destFileName>
  201. </artifactItem>
  202. <artifactItem>
  203. <groupId>com.scytl.products.ov</groupId>
  204. <artifactId>tallying-webapp</artifactId>
  205. <type>war</type>
  206. <outputDirectory>${project.build.directory}/install/webapps/</outputDirectory>
  207. <destFileName>tallying.war</destFileName>
  208. </artifactItem>
  209. </artifactItems>
  210. </configuration>
  211. </execution>
  212. <execution>
  213. <id>unpack</id>
  214. <phase>prepare-package</phase>
  215. <goals>
  216. <goal>unpack</goal>
  217. </goals>
  218. <configuration>
  219. <artifactItems>
  220. <artifactItem>
  221. <groupId>com.scytl.products.ov</groupId>
  222. <artifactId>config-engine</artifactId>
  223. <type>jar</type>
  224. <outputDirectory>${project.build.directory}/install/unpackedConfigEngine</outputDirectory>
  225. </artifactItem>
  226. <artifactItem>
  227. <groupId>com.scytl.products.ov.sdm.frontend</groupId>
  228. <artifactId>ov-sdm-frontend</artifactId>
  229. <type>zip</type>
  230. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  231. </artifactItem>
  232. <artifactItem>
  233. <groupId>com.scytl.products.ov.sdm.ui</groupId>
  234. <artifactId>sdm-ws-rest</artifactId>
  235. <type>zip</type>
  236. <outputDirectory>${project.build.directory}/install/sdm/</outputDirectory>
  237. </artifactItem>
  238. <artifactItem>
  239. <groupId>com.scytl.products.ov.sdm</groupId>
  240. <artifactId>sdm-db-utils</artifactId>
  241. <type>zip</type>
  242. <outputDirectory>${project.build.directory}/dbutils</outputDirectory>
  243. </artifactItem>
  244. <artifactItem>
  245. <groupId>com.scytl.math</groupId>
  246. <artifactId>scytl-math-native</artifactId>
  247. <classifier>amd64-Linux-gpp-jni</classifier>
  248. <type>nar</type>
  249. <outputDirectory>${project.build.directory}/install/scytl-math</outputDirectory>
  250. </artifactItem>
  251. <artifactItem>
  252. <groupId>com.scytl.math</groupId>
  253. <artifactId>scytl-math-native</artifactId>
  254. <classifier>amd64-Windows-gpp-jni</classifier>
  255. <type>nar</type>
  256. <outputDirectory>${project.build.directory}/install/scytl-math</outputDirectory>
  257. </artifactItem>
  258. <artifactItem>
  259. <groupId>com.scytl.gmp</groupId>
  260. <artifactId>scytl-gmp</artifactId>
  261. <classifier>amd64-Linux-gpp-shared</classifier>
  262. <type>nar</type>
  263. <outputDirectory>${project.build.directory}/install/scytl-math</outputDirectory>
  264. </artifactItem>
  265. <artifactItem>
  266. <groupId>com.scytl.gmp</groupId>
  267. <artifactId>scytl-gmp</artifactId>
  268. <classifier>amd64-Windows-gpp-shared</classifier>
  269. <type>nar</type>
  270. <outputDirectory>${project.build.directory}/install/scytl-math</outputDirectory>
  271. </artifactItem>
  272. </artifactItems>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <artifactId>maven-antrun-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <phase>package</phase>
  282. <configuration>
  283. <target name="building">
  284. <!-- LINUX EXEC -->
  285. <exec executable="sh" dir="${project.build.directory}" osfamily="unix" failonerror="true">
  286. <arg line="dbutils/bin/createDBTool.sh install/sdm/sdmDB" />
  287. </exec>
  288. </target>
  289. </configuration>
  290. <goals>
  291. <goal>run</goal>
  292. </goals>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. <plugin>
  297. <artifactId>maven-assembly-plugin</artifactId>
  298. <configuration>
  299. <descriptor>package.xml</descriptor>
  300. <appendAssemblyId>false</appendAssemblyId>
  301. <finalName>ov-secure-data-manager-package-${project.version}</finalName>
  302. </configuration>
  303. <executions>
  304. <execution>
  305. <id>create-archive</id>
  306. <phase>package</phase>
  307. <goals>
  308. <goal>single</goal>
  309. </goals>
  310. </execution>
  311. </executions>
  312. </plugin>
  313. </plugins>
  314. </build>
  315. </project>