pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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>certificate-registry</artifactId>
  5. <groupId>com.scytl.products.ov.channel.cr</groupId>
  6. <version>2.1.7</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>com.scytl.products.ov.channel.cr.ui</groupId>
  10. <artifactId>cr-ws-rest</artifactId>
  11. <packaging>war</packaging>
  12. <name>Online Voting - Certificate Registry - Webservices</name>
  13. <dependencyManagement>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.scytl.products.ov.channel.commons</groupId>
  17. <artifactId>ov-commons-integration-tests</artifactId>
  18. <version>${project.version}</version>
  19. <scope>import</scope>
  20. <type>pom</type>
  21. </dependency>
  22. </dependencies>
  23. </dependencyManagement>
  24. <dependencies>
  25. <!-- Local dependencies -->
  26. <dependency>
  27. <groupId>com.scytl.products.ov.channel.cr.services</groupId>
  28. <artifactId>certificate-registry-services</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.bouncycastle</groupId>
  33. <artifactId>bcprov-jdk15on</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <!-- OV CHANNEL COMMONS -->
  37. <dependency>
  38. <groupId>com.scytl.products.ov.channel.commons</groupId>
  39. <artifactId>ov-commons-infrastructure</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.scytl.products.ov.channel.commons</groupId>
  43. <artifactId>ov-commons-logging</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.scytl.products.ov.channel.commons</groupId>
  47. <artifactId>ov-commons-beans</artifactId>
  48. </dependency>
  49. <!-- Tests -->
  50. <dependency>
  51. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  52. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  53. <version>${jersey-test-framework-core.version}</version>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.glassfish.jersey.media</groupId>
  58. <artifactId>jersey-media-json-jackson</artifactId>
  59. <version>${jersey-test-framework-core.version}</version>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.scytl.products.ov.channel.commons</groupId>
  64. <artifactId>ov-commons-integration-tests</artifactId>
  65. <version>${project.version}</version>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.github.cukespace</groupId>
  70. <artifactId>cukespace-core</artifactId>
  71. <version>${com.github.cukespace.version}</version>
  72. <scope>test</scope>
  73. <exclusions>
  74. <exclusion>
  75. <groupId>org.jboss.shrinkwrap</groupId>
  76. <artifactId>shrinkwrap-api</artifactId>
  77. </exclusion>
  78. </exclusions>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <finalName>${project.artifactId}</finalName>
  83. </build>
  84. <!-- The profile below can be used if the HTML API files should be generated -->
  85. <!-- It includes the installation of node, npm and raml2html -->
  86. <profiles>
  87. <profile>
  88. <id>skipTestRun</id>
  89. <activation>
  90. <property>
  91. <name>skipTests</name>
  92. <value>!true</value>
  93. </property>
  94. </activation>
  95. <dependencies>
  96. <dependency>
  97. <groupId>com.scytl.products.ov.channel.commons.lib</groupId>
  98. <artifactId>ov-commons-lib</artifactId>
  99. <version>${project.version}</version>
  100. <type>test-jar</type>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104. </profile>
  105. <profile>
  106. <id>generate-all-html-apis</id>
  107. <build>
  108. <finalName>${project.artifactId}</finalName>
  109. <plugins>
  110. <plugin>
  111. <groupId>com.github.eirslett</groupId>
  112. <artifactId>frontend-maven-plugin</artifactId>
  113. <version>${frontend-maven-plugin.version}</version>
  114. <!-- install local installation of node and npm in the target directory -->
  115. <configuration>
  116. <installDirectory>target</installDirectory>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>install node and npm</id>
  121. <goals>
  122. <goal>install-node-and-npm</goal>
  123. </goals>
  124. <configuration>
  125. <nodeVersion>${node.version}</nodeVersion>
  126. <npmVersion>${npm.version}</npmVersion>
  127. <nodeDownloadRoot>
  128. https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/
  129. </nodeDownloadRoot>
  130. <npmDownloadRoot>
  131. https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/
  132. </npmDownloadRoot>
  133. </configuration>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.codehaus.mojo</groupId>
  139. <artifactId>exec-maven-plugin</artifactId>
  140. <executions>
  141. <!-- Install raml2html -->
  142. <execution>
  143. <id>id0</id>
  144. <phase>package</phase>
  145. <goals>
  146. <goal>exec</goal>
  147. </goals>
  148. <configuration>
  149. <executable>npm</executable>
  150. <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version}
  151. raml2html
  152. </commandlineArgs>
  153. </configuration>
  154. </execution>
  155. <!-- Generate API file -->
  156. <execution>
  157. <id>id1</id>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>exec</goal>
  161. </goals>
  162. <configuration>
  163. <executable>target/node/node_modules/npm-${npm.version}/node_modules/raml2html/bin/raml2html
  164. </executable>
  165. <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
  166. </configuration>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </profile>
  173. </profiles>
  174. </project>