pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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>control-components-orchestrator</artifactId>
  5. <groupId>com.scytl.products.ov.channel.cc.orchestrator</groupId>
  6. <version>2.1.7</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>or-ws-rest</artifactId>
  10. <packaging>war</packaging>
  11. <name>Online Voting - Control Components Orchestrator - Webservices</name>
  12. <dependencyManagement>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.scytl.products.ov.channel.commons</groupId>
  16. <artifactId>ov-commons-integration-tests</artifactId>
  17. <version>${project.version}</version>
  18. <scope>import</scope>
  19. <type>pom</type>
  20. </dependency>
  21. </dependencies>
  22. </dependencyManagement>
  23. <dependencies>
  24. <!-- Needed to overwrite the SpringBoot conflicting log4j12 dependency - do not remove -->
  25. <dependency>
  26. <groupId>org.slf4j</groupId>
  27. <artifactId>slf4j-log4j12</artifactId>
  28. <version>${slf4j-api.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.scytl.products.ov.channel.cc.orchestrator</groupId>
  32. <artifactId>orchestrator-commons</artifactId>
  33. <version>${project.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.scytl.products.ov.channel.cc.orchestrator</groupId>
  37. <artifactId>ov-cc-or-choice-codes-services</artifactId>
  38. <version>${project.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.scytl.products.ov.channel.cc.orchestrator</groupId>
  42. <artifactId>ov-cc-or-mixing-services</artifactId>
  43. <version>${project.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.scytl.products.ov.channel.commons</groupId>
  47. <artifactId>ov-commons-integration-tests</artifactId>
  48. <version>${project.version}</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.openejb</groupId>
  53. <artifactId>javaee-api</artifactId>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.squareup.retrofit2</groupId>
  58. <artifactId>retrofit-mock</artifactId>
  59. <version>${retrofit.version}</version>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.scytl.products.ov.channel.commons</groupId>
  64. <artifactId>ov-commons-dto</artifactId>
  65. </dependency>
  66. <!-- In-memory embedded message broker for tests -->
  67. <dependency>
  68. <groupId>org.apache.qpid</groupId>
  69. <artifactId>qpid-broker-core</artifactId>
  70. <version>${qpid.version}</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.qpid</groupId>
  75. <artifactId>qpid-broker-plugins-amqp-0-8-protocol</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.qpid</groupId>
  80. <artifactId>qpid-broker-plugins-memory-store</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. </dependencies>
  84. <build>
  85. <finalName>${project.artifactId}</finalName>
  86. </build>
  87. <profiles>
  88. <profile>
  89. <id>skipTestRun</id>
  90. <activation>
  91. <property>
  92. <name>skipTests</name>
  93. <value>!true</value>
  94. </property>
  95. </activation>
  96. <dependencies>
  97. <dependency>
  98. <groupId>com.scytl.products.ov.channel.commons</groupId>
  99. <artifactId>ov-commons-dto</artifactId>
  100. <version>${project.version}</version>
  101. <type>test-jar</type>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.scytl.products.ov.channel.commons.lib</groupId>
  106. <artifactId>ov-commons-lib</artifactId>
  107. <version>${project.version}</version>
  108. <type>test-jar</type>
  109. <scope>test</scope>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-surefire-plugin</artifactId>
  117. <configuration>
  118. <includes>
  119. <include>**/*TestSuite.java</include>
  120. </includes>
  121. </configuration>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </profile>
  126. <profile>
  127. <!-- The profile below can be used if the HTML API files should be generated -->
  128. <!-- It includes the installation of node, npm and raml2html -->
  129. <id>generate-all-html-apis</id>
  130. <build>
  131. <finalName>${project.artifactId}</finalName>
  132. <plugins>
  133. <plugin>
  134. <groupId>com.github.eirslett</groupId>
  135. <artifactId>frontend-maven-plugin</artifactId>
  136. <version>${frontend-maven-plugin.version}</version>
  137. <!-- install local installation of node and npm in the target directory -->
  138. <configuration>
  139. <installDirectory>target</installDirectory>
  140. </configuration>
  141. <executions>
  142. <execution>
  143. <id>install node and npm</id>
  144. <goals>
  145. <goal>install-node-and-npm</goal>
  146. </goals>
  147. <configuration>
  148. <nodeVersion>${node.version}</nodeVersion>
  149. <npmVersion>${npm.version}</npmVersion>
  150. <nodeDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/</nodeDownloadRoot>
  151. <npmDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/</npmDownloadRoot>
  152. </configuration>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.codehaus.mojo</groupId>
  158. <artifactId>exec-maven-plugin</artifactId>
  159. <executions>
  160. <!-- Install raml2html -->
  161. <execution>
  162. <id>id0</id>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>exec</goal>
  166. </goals>
  167. <configuration>
  168. <executable>npm</executable>
  169. <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version} raml2html</commandlineArgs>
  170. </configuration>
  171. </execution>
  172. <!-- Generate API file -->
  173. <execution>
  174. <id>id1</id>
  175. <phase>package</phase>
  176. <goals>
  177. <goal>exec</goal>
  178. </goals>
  179. <configuration>
  180. <executable>target/node/node_modules/npm/node_modules/raml2html/bin/raml2html</executable>
  181. <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
  182. </configuration>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </profile>
  189. </profiles>
  190. </project>