pom.xml 8.5 KB

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