2
0

pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.scytl.products.ov.sdm</groupId>
  6. <artifactId>ov-secure-data-manager</artifactId>
  7. <version>2.1.6</version>
  8. </parent>
  9. <artifactId>ov-secure-data-manager-assembly</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Secure Data Manager Assembly</name>
  12. <description>OV Secure Data Manager Assembly</description>
  13. <properties>
  14. <sdm.application.version>${project.version}</sdm.application.version>
  15. <javac.version>1.8</javac.version>
  16. <jce.version>8</jce.version>
  17. <surfire.version>2.17</surfire.version>
  18. <izpack.version>5.0.6</izpack.version>
  19. <izpack.staging>${project.build.directory}</izpack.staging>
  20. <Izpack-validator.version>${project.version}</Izpack-validator.version><!-- This is needed in the ant install.xml file -->
  21. <launch4j.version>1.7.16</launch4j.version>
  22. <launch4j.jre.minVersion>1.8.0_45</launch4j.jre.minVersion>
  23. <launch4j.jre.maxVersion>1.8.0_999</launch4j.jre.maxVersion>
  24. <jakarta-regexp.version>1.4</jakarta-regexp.version>
  25. <bsf.version>2.4.0</bsf.version>
  26. <groovy-all.version>2.4.12</groovy-all.version>
  27. <groovy-ant.version>2.4.12</groovy-ant.version>
  28. <commons-logging.version>1.2</commons-logging.version>
  29. <ant.version>1.9.5</ant.version>
  30. <ant-launcher.version>1.9.3</ant-launcher.version>
  31. <apache-tomcat.version>8.5.32</apache-tomcat.version>
  32. </properties>
  33. <dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.scytl.products.ov.sdm</groupId>
  37. <artifactId>Izpack-validator</artifactId>
  38. <version>${project.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.scytl.products.ov.sdm</groupId>
  42. <artifactId>secure-data-manager-packaging</artifactId>
  43. <type>pom</type>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.bsf</groupId>
  48. <artifactId>bsf</artifactId>
  49. <version>${bsf.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.codehaus.groovy</groupId>
  53. <artifactId>groovy-all</artifactId>
  54. <version>${groovy-all.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.codehaus.groovy</groupId>
  58. <artifactId>groovy-ant</artifactId>
  59. <version>${groovy-ant.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>commons-logging</groupId>
  63. <artifactId>commons-logging</artifactId>
  64. <version>${commons-logging.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.ant</groupId>
  68. <artifactId>ant</artifactId>
  69. <version>${ant.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.ant</groupId>
  73. <artifactId>ant-launcher</artifactId>
  74. <version>${ant-launcher.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>jakarta-regexp</groupId>
  78. <artifactId>jakarta-regexp</artifactId>
  79. <version>${jakarta-regexp.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.tomcat</groupId>
  83. <artifactId>apache-tomcat</artifactId>
  84. <version>${apache-tomcat.version}-windows</version>
  85. <classifier>x86</classifier>
  86. <type>zip</type>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.tomcat</groupId>
  90. <artifactId>apache-tomcat</artifactId>
  91. <version>${apache-tomcat.version}-windows</version>
  92. <classifier>x64</classifier>
  93. <type>zip</type>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.tomcat</groupId>
  97. <artifactId>apache-tomcat</artifactId>
  98. <version>${apache-tomcat.version}</version>
  99. <type>zip</type>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.safesign</groupId>
  103. <artifactId>Safesign</artifactId>
  104. <version>3.0.93</version>
  105. <type>exe</type>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.safesign</groupId>
  109. <artifactId>SafeSign-x64</artifactId>
  110. <version>1.0</version>
  111. <type>exe</type>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.ifdokccid</groupId>
  115. <artifactId>ifdokccid</artifactId>
  116. <version>4.2.5</version>
  117. <classifier>linux_i686</classifier>
  118. <type>zip</type>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.ifdokccid</groupId>
  122. <artifactId>ifdokccid</artifactId>
  123. <version>4.2.5</version>
  124. <classifier>linux_x86_64</classifier>
  125. <type>zip</type>
  126. </dependency>
  127. </dependencies>
  128. </dependencyManagement>
  129. <dependencies>
  130. <dependency>
  131. <groupId>com.scytl.products.ov.sdm</groupId>
  132. <artifactId>Izpack-validator</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.scytl.products.ov.sdm</groupId>
  136. <artifactId>secure-data-manager-packaging</artifactId>
  137. <type>pom</type>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.bsf</groupId>
  141. <artifactId>bsf</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.codehaus.groovy</groupId>
  145. <artifactId>groovy-all</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.codehaus.groovy</groupId>
  149. <artifactId>groovy-ant</artifactId>
  150. </dependency>
  151. <dependency>
  152. <groupId>commons-logging</groupId>
  153. <artifactId>commons-logging</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.ant</groupId>
  157. <artifactId>ant</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.ant</groupId>
  161. <artifactId>ant-launcher</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>jakarta-regexp</groupId>
  165. <artifactId>jakarta-regexp</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.apache.tomcat</groupId>
  169. <artifactId>apache-tomcat</artifactId>
  170. <classifier>x86</classifier>
  171. <type>zip</type>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.apache.tomcat</groupId>
  175. <artifactId>apache-tomcat</artifactId>
  176. <classifier>x64</classifier>
  177. <type>zip</type>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.apache.tomcat</groupId>
  181. <artifactId>apache-tomcat</artifactId>
  182. <type>zip</type>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.safesign</groupId>
  186. <artifactId>Safesign</artifactId>
  187. <type>exe</type>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.safesign</groupId>
  191. <artifactId>SafeSign-x64</artifactId>
  192. <type>exe</type>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.ifdokccid</groupId>
  196. <artifactId>ifdokccid</artifactId>
  197. <classifier>linux_i686</classifier>
  198. <type>zip</type>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.ifdokccid</groupId>
  202. <artifactId>ifdokccid</artifactId>
  203. <classifier>linux_x86_64</classifier>
  204. <type>zip</type>
  205. </dependency>
  206. </dependencies>
  207. <build>
  208. <plugins>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-dependency-plugin</artifactId>
  212. <executions>
  213. <execution>
  214. <id>copy</id>
  215. <phase>prepare-package</phase>
  216. <goals>
  217. <goal>copy</goal>
  218. </goals>
  219. <configuration>
  220. <artifactItems>
  221. <artifactItem>
  222. <groupId>org.apache.bsf</groupId>
  223. <artifactId>bsf</artifactId>
  224. <type>jar</type>
  225. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  226. </artifactItem>
  227. <artifactItem>
  228. <groupId>org.codehaus.groovy</groupId>
  229. <artifactId>groovy-all</artifactId>
  230. <type>jar</type>
  231. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  232. </artifactItem>
  233. <artifactItem>
  234. <groupId>org.codehaus.groovy</groupId>
  235. <artifactId>groovy-ant</artifactId>
  236. <type>jar</type>
  237. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  238. </artifactItem>
  239. <artifactItem>
  240. <groupId>commons-logging</groupId>
  241. <artifactId>commons-logging</artifactId>
  242. <type>jar</type>
  243. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  244. </artifactItem>
  245. <artifactItem>
  246. <groupId>com.scytl.products.ov.sdm</groupId>
  247. <artifactId>Izpack-validator</artifactId>
  248. <type>jar</type>
  249. <destFileName>Izpack-validator-${Izpack-validator.version}.jar</destFileName>
  250. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  251. </artifactItem>
  252. <artifactItem>
  253. <groupId>org.apache.ant</groupId>
  254. <artifactId>ant</artifactId>
  255. <type>jar</type>
  256. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  257. </artifactItem>
  258. <artifactItem>
  259. <groupId>org.apache.ant</groupId>
  260. <artifactId>ant-launcher</artifactId>
  261. <type>jar</type>
  262. <outputDirectory>${project.build.directory}/jars/</outputDirectory>
  263. </artifactItem>
  264. <artifactItem>
  265. <groupId>org.apache.tomcat</groupId>
  266. <artifactId>apache-tomcat</artifactId>
  267. <classifier>x86</classifier>
  268. <type>zip</type>
  269. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  270. </artifactItem>
  271. <artifactItem>
  272. <groupId>org.apache.tomcat</groupId>
  273. <artifactId>apache-tomcat</artifactId>
  274. <classifier>x64</classifier>
  275. <type>zip</type>
  276. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  277. </artifactItem>
  278. <artifactItem>
  279. <groupId>org.apache.tomcat</groupId>
  280. <artifactId>apache-tomcat</artifactId>
  281. <type>zip</type>
  282. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  283. </artifactItem>
  284. <artifactItem>
  285. <groupId>com.safesign</groupId>
  286. <artifactId>Safesign</artifactId>
  287. <type>exe</type>
  288. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  289. </artifactItem>
  290. <artifactItem>
  291. <groupId>com.safesign</groupId>
  292. <artifactId>SafeSign-x64</artifactId>
  293. <type>exe</type>
  294. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  295. </artifactItem>
  296. <artifactItem>
  297. <groupId>com.ifdokccid</groupId>
  298. <artifactId>ifdokccid</artifactId>
  299. <classifier>linux_i686</classifier>
  300. <type>zip</type>
  301. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  302. </artifactItem>
  303. <artifactItem>
  304. <groupId>com.ifdokccid</groupId>
  305. <artifactId>ifdokccid</artifactId>
  306. <classifier>linux_x86_64</classifier>
  307. <type>zip</type>
  308. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  309. </artifactItem>
  310. </artifactItems>
  311. </configuration>
  312. </execution>
  313. <execution>
  314. <id>unpack</id>
  315. <phase>prepare-package</phase>
  316. <goals>
  317. <goal>unpack</goal>
  318. </goals>
  319. <configuration>
  320. <artifactItems>
  321. <artifactItem>
  322. <groupId>com.scytl.products.ov.sdm</groupId>
  323. <artifactId>secure-data-manager-packaging</artifactId>
  324. <type>zip</type>
  325. <outputDirectory>${project.build.directory}/install/</outputDirectory>
  326. </artifactItem>
  327. </artifactItems>
  328. </configuration>
  329. </execution>
  330. </executions>
  331. </plugin>
  332. <plugin>
  333. <artifactId>maven-antrun-plugin</artifactId>
  334. <executions>
  335. <execution>
  336. <id>create-staging-area</id>
  337. <phase>process-resources</phase>
  338. <goals>
  339. <goal>run</goal>
  340. </goals>
  341. <configuration>
  342. <tasks>
  343. <copy todir="${izpack.staging}">
  344. <fileset dir="${basedir}/src/main/izpack" />
  345. </copy>
  346. </tasks>
  347. </configuration>
  348. </execution>
  349. </executions>
  350. </plugin>
  351. <!-- Plugin de izpack para generar el instalador, configurado para que
  352. lo genere en la fase de package -->
  353. <plugin>
  354. <groupId>org.codehaus.izpack</groupId>
  355. <artifactId>izpack-maven-plugin</artifactId>
  356. <version>${izpack.version}</version>
  357. <executions>
  358. <execution>
  359. <phase>prepare-package</phase>
  360. <goals>
  361. <goal>izpack</goal>
  362. </goals>
  363. <configuration>
  364. <!-- base for relative paths in izpack descriptor -->
  365. <baseDir>${izpack.staging}</baseDir>
  366. <installFile>${basedir}/src/main/izpack/install.xml</installFile>
  367. <outputDirectory>${project.build.directory}</outputDirectory>
  368. <jarName>ov-secure-data-manager-assembly-${sdm.application.version}</jarName>
  369. </configuration>
  370. </execution>
  371. </executions>
  372. <dependencies>
  373. <dependency>
  374. <groupId>org.codehaus.izpack</groupId>
  375. <artifactId>izpack-panel</artifactId>
  376. <version>${izpack.version}</version>
  377. </dependency>
  378. <dependency>
  379. <groupId>jakarta-regexp</groupId>
  380. <artifactId>jakarta-regexp</artifactId>
  381. <version>${jakarta-regexp.version}</version>
  382. </dependency>
  383. </dependencies>
  384. </plugin>
  385. <plugin>
  386. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  387. <artifactId>launch4j-maven-plugin</artifactId>
  388. <version>${launch4j.version}</version>
  389. <configuration>
  390. <dontWrapJar>false</dontWrapJar>
  391. <headerType>gui</headerType>
  392. <jar>${project.build.directory}/ov-secure-data-manager-assembly-${sdm.application.version}.jar</jar>
  393. <errTitle />
  394. <cmdLine />
  395. <chdir>.</chdir>
  396. <priority>normal</priority>
  397. <downloadUrl>http://java.com/download</downloadUrl>
  398. <supportUrl />
  399. <stayAlive>false</stayAlive>
  400. <restartOnCrash>false</restartOnCrash>
  401. <manifest />
  402. <icon />
  403. <jre>
  404. <path />
  405. <minVersion>${launch4j.jre.minVersion}</minVersion>
  406. <maxVersion>${launch4j.jre.maxVersion}</maxVersion>
  407. <jdkPreference>preferJre</jdkPreference>
  408. </jre>
  409. </configuration>
  410. <executions>
  411. <execution>
  412. <id>l4j-clui-64</id>
  413. <phase>prepare-package</phase>
  414. <goals>
  415. <goal>launch4j</goal>
  416. </goals>
  417. <configuration>
  418. <outfile>${project.build.directory}/install/sdm-64-windows-installer-${sdm.application.version}.exe</outfile>
  419. </configuration>
  420. </execution>
  421. </executions>
  422. </plugin>
  423. <plugin>
  424. <artifactId>maven-assembly-plugin</artifactId>
  425. <configuration>
  426. <descriptor>package.xml</descriptor>
  427. <appendAssemblyId>false</appendAssemblyId>
  428. <finalName>ov-secure-data-manager-assembly-${sdm.application.version}</finalName>
  429. </configuration>
  430. <executions>
  431. <execution>
  432. <id>create-archive</id>
  433. <phase>package</phase>
  434. <goals>
  435. <goal>single</goal>
  436. </goals>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. <plugin>
  441. <groupId>org.codehaus.mojo</groupId>
  442. <artifactId>build-helper-maven-plugin</artifactId>
  443. <executions>
  444. <execution>
  445. <id>attach-distribution</id>
  446. <phase>package</phase>
  447. <goals>
  448. <goal>attach-artifact</goal>
  449. </goals>
  450. <configuration>
  451. <artifacts>
  452. <artifact>
  453. <file>target/ov-secure-data-manager-assembly-${sdm.application.version}.jar</file>
  454. <type>jar</type>
  455. </artifact>
  456. </artifacts>
  457. </configuration>
  458. </execution>
  459. </executions>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. </project>